-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined services causes exception #1757
Open
marcus-pousette opened this issue
May 15, 2023
· 4 comments
· Fixed by #1778 · May be fixed by #2133
Open
Undefined services causes exception #1757
marcus-pousette opened this issue
May 15, 2023
· 4 comments
· Fixed by #1778 · May be fixed by #2133
Labels
kind/bug
A bug in existing code (including security flaws)
Comments
Related: #1573 |
thomaseizinger
moved this from 🤨Needs Investigation
to 🥞Weekly Candidates/Discuss🎙
in js-libp2p
Aug 23, 2023
maschad
added
kind/bug
A bug in existing code (including security flaws)
and removed
need/triage
Needs initial labeling and prioritization
labels
Sep 12, 2023
A runtime check seems reasonable but this really shouldn't be allowed by the types. |
Will be closed by #2133 when that lands. |
JS Colo 2024 discussionstill waiting on config validation PR.. no new updates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
0.45.0
Severity:
Low
Description:
Creating a libp2p instance with services that are undefined creates a null pointer exception even if it is allowed by the types
To mitigate this I think there needs to be a null check before this
js-libp2p/src/libp2p.ts
Line 167 in 710da91
to check if
createService
is a function.I ended up with this error because I am generating different configs based on conditions, and this leads me to assign "undefined" to services
relay
occasionallyThe text was updated successfully, but these errors were encountered: