-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[mono] make sure that MonoBundledResource.id is valid #106205
Conversation
cc: @kg What is ASAN? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
asan is llvm address sanitizer, it catches various bad pointers. it can also catch leaks. a related feature is ubsan, which detects undefined behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry :(
id really shouldn't be null here...
I saw ASAN on browser/wasm to complain about NULL derefence in
key_from_id
while loading time zone bundle.But I was not able to reproduce it without ASAN.
This is just trying to add defensive code.