You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for this ASan complaint is strlen reads its data in units of unsigned long, which means it can read more bytes than are in the object containing the string, which has undefined behavior per C11 6.5.6/8. I ran into this with my pointer verifier tool.
However, my understanding is the EA libc is meant to work with any standard-compliant C compiler, so at least in theory, this strlen could be problematic. But, as with issue #181, I'm just noting it and moving on.
But, I might suggest adding "strlen" to the issue title to distinguish it from other potential ASan findings.
phillipjohnston
changed the title
Address Sanitizer failure
strlen Address Sanitizer failure
May 4, 2022
The text was updated successfully, but these errors were encountered: