Open septag opened 1 year ago
I came here because I ran into global-buffer-overflow
as well, even with the fixes in this PR, but the final missing piece was adding STBSP__ASAN
to the public definitions, so thanks @Condzi for that info!
By the way, I think this PR is a duplicate of #1350 although it contains an explicit MSVC version check.
I also had an issue with ASAN and the trick stbsp uses for finding '\0'. However, I found out that I also need to modify STBSP_PUBLICDEC / PUBLICDEF macros by adding STBSP__ASAN to them, like so:
I'm not sure why they aren't there in the first place. Without this added, my code still was giving me
global-buffer-overflow
.