Bug 2063041 - _FORTIFY_SOURCE does not work for stpcpy [9.1.0]
Summary: _FORTIFY_SOURCE does not work for stpcpy [9.1.0]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: glibc
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florian Weimer
QA Contact: Sergey Kolosov
URL:
Whiteboard:
Depends On: 2063230
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-11 08:11 UTC by Siddhesh Poyarekar
Modified: 2023-07-18 14:29 UTC (History)
7 users (show)

Fixed In Version: glibc-2.34-29.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2063042 (view as bug list)
Environment:
Last Closed: 2022-11-15 11:11:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-115306 0 None None None 2022-03-11 08:20:48 UTC
Red Hat Product Errata RHBA-2022:8272 0 None None None 2022-11-15 11:12:06 UTC

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


Note You need to log in before you can comment on or make changes to this bug.