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

Avoid address sanitizer on MSVC #1622

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tim-rex
Copy link

@tim-rex tim-rex commented Mar 15, 2024

Extending on #393
Since MSVC now supports address sanitizer, it appears to be throwing the same issues as other platforms

This PR adds compiler checks and appropriate declspecs for MSVC

Note that _declspec for MSVC must appear before the storage specifier, hence the additional set of STBSP__PUBLICDEF's
There's probably a cleaner way to structure that

Extending on nothings#393
Since MSVC now supports address sanitizer, it appears to be throwing the same issues as other platforms

This PR adds compiler checks and appropriate declspecs for MSVC
@Manuzor
Copy link

Manuzor commented Mar 15, 2024

See also #1477 as well as #1350.

@Condzi
Copy link

Condzi commented Mar 20, 2024

You might add UBSAN as well, since it also flags the tricks used in sprintf library. __attribute__((no_sanitize("undefined")))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants