[Bug tree-optimization/125079] [13/14/15 Regression] tree-ssa-strlen get_string_length: __strcat_chk -> __stpcpy_chk drops bound subtract

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 1 12:57:12 GMT 2026


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[13/14/15/16/17 Regression] |[13/14/15 Regression]
                   |tree-ssa-strlen             |tree-ssa-strlen
                   |get_string_length:          |get_string_length:
                   |__strcat_chk ->             |__strcat_chk ->
                   |__stpcpy_chk drops bound    |__stpcpy_chk drops bound
                   |subtract                    |subtract

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for trunk and 16.2+ so far.


More information about the Gcc-bugs mailing list