Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 746749 - >=sys-devel/gcc-9: memcmp stripped wrongly
Summary: >=sys-devel/gcc-9: memcmp stripped wrongly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/PR95189
Whiteboard: wait for upstream release
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-05 18:26 UTC by Luke-Jr
Modified: 2021-04-29 07:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2020-10-05 18:26:37 UTC
I'm surprised if this isn't a duplicate, but I can't find a bug for it...

GCC 9 and 10 will in some circumstances "optimise" a memcmp to always return zero.

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

I'm not aware of any security implications or other practical problems, but it has the potential to be quite harmful in theory.
Comment 1 Jaco Kroon 2020-12-22 18:32:07 UTC
sox package affected too.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-29 07:01:32 UTC
Should be fixed in gcc-11.1 and gcc-10.3