[Bug target/94158] Expanded strlen causes out-of-bounds read on AMD64 target

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 12 21:48:43 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94158

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A pointer returned from strdup has to be valid to be able pass to free.

Your testcase makes that invalid.


More information about the Gcc-bugs mailing list