Bug 2063041

Summary: _FORTIFY_SOURCE does not work for stpcpy [9.1.0]
Product: Red Hat Enterprise Linux 9 Reporter: Siddhesh Poyarekar <sipoyare>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED ERRATA QA Contact: Sergey Kolosov <skolosov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: ashankar, codonell, dj, fweimer, mnewsome, pfrankli, sipoyare
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.34-29.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2063042 (view as bug list) Environment:
Last Closed: 2022-11-15 11:11:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2063230    
Bug Blocks:    

Description Siddhesh Poyarekar 2022-03-11 08:11:08 UTC
Description of problem:

The definition for the fortified version of stpcpy and a few other functions are incorrectly under __USE_GNU when they should be under __USE_XOPEN2K8 because of which, they don't get fortified when _GNU_SOURCE is not defined.

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

Additional info:

Fixed upstream:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fcfc9086815bf0d277ad47a90ee3fda4c37acca8

Comment 1 Florian Weimer 2022-03-11 09:28:19 UTC
Can we backport the fix to the 2.34 upstream branch? Thanks.

Comment 6 errata-xmlrpc 2022-11-15 11:11:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (glibc bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8272