[Bug pch/105403] [Bug] Buffer overflow can happen when reading pchf_data from file

geoffk at geoffk dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 27 10:37:29 GMT 2022


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

Geoff Keating <geoffk at geoffk dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |geoffk at geoffk dot org

--- Comment #1 from Geoff Keating <geoffk at geoffk dot org> ---
A PCH file is a trusted input, so this really shouldn’t happen, and there are
surely many other ways to trigger arbitrary code execution if you can craft
one.  However a sanity check would do no harm, this code is not performance
relevant.


More information about the Gcc-bugs mailing list