-
Notifications
You must be signed in to change notification settings - Fork 206
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
Dereferencing nullptr in __sec_to_zone function #506
Comments
after patching the binary
This demonstrates that the issue lies within wasi-libc, not my fast_io library. I recommend transitioning wasi libc to LLVM libc. The ease with which this bug occurs suggests there may be numerous security vulnerabilities in wasi libc from a statistical perspective. Modifying musl is unlikely to address it effectively. I propose involving LLVM developers in maintaining the libc. |
Closes #506
Thanks you for the bug report. The code you found it producing a null pointer dereference wasi-libc/libc-top-half/musl/src/time/__tz.c Lines 436 to 440 in 3184536
|
wasi-libc/libc-top-half/musl/src/time/__tz.c
Line 439 in 3184536
wasi-libc/libc-top-half/musl/src/time/localtime_r.c
Line 13 in 3184536
The problem is that oppoff ptr can be nullptr.
stack unwind information to show the bug
Since wasi has basically been used for every wasm apps on the web and wasi-libc is static compiled so all binaries have to recompile.
The text was updated successfully, but these errors were encountered: