Skip to content
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

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

pavelsavara
Copy link
Member

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.

@pavelsavara pavelsavara added this to the 9.0.0 milestone Aug 9, 2024
@pavelsavara pavelsavara requested a review from mdh1418 August 9, 2024 18:08
@pavelsavara pavelsavara self-assigned this Aug 9, 2024
@mdh1418
Copy link
Member

mdh1418 commented Aug 9, 2024

cc: @kg

What is ASAN?

Copy link
Member

@mdh1418 mdh1418 left a 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!

@kg
Copy link
Member

kg commented Aug 9, 2024

asan is llvm address sanitizer, it catches various bad pointers. it can also catch leaks.

a related feature is ubsan, which detects undefined behavior

Copy link
Member

@kg kg left a 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...

@pavelsavara pavelsavara merged commit a38ed97 into dotnet:main Aug 12, 2024
78 of 80 checks passed
@pavelsavara pavelsavara deleted the resource_id branch August 12, 2024 07:26
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants