public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/28746] _FORTIFY_SOURCE does not work for stpcpy
Date: Wed, 12 Jan 2022 18:06:56 +0000	[thread overview]
Message-ID: <bug-28746-131-cnZaSJ6WBV@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28746-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28746

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Siddhesh Poyarekar
<siddhesh@sourceware.org>:

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

commit fcfc9086815bf0d277ad47a90ee3fda4c37acca8
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
Date:   Wed Jan 12 23:34:48 2022 +0530

    debug: Synchronize feature guards in fortified functions [BZ #28746]

    Some functions (e.g. stpcpy, pread64, etc.) had moved to POSIX in the
    main headers as they got incorporated into the standard, but their
    fortified variants remained under __USE_GNU.  As a result, these
    functions did not get fortified when _GNU_SOURCE was not defined.

    Add test wrappers that check all functions tested in tst-chk0 at all
    levels with _GNU_SOURCE undefined and then use the failures to (1)
    exclude checks for _GNU_SOURCE functions in these tests and (2) Fix
    feature macro guards in the fortified function headers so that they're
    the same as the ones in the main headers.

    This fixes BZ #28746.

    Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
    Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-01-12 18:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04 19:27 [Bug libc/28746] New: " siddhesh at sourceware dot org
2022-01-04 19:27 ` [Bug libc/28746] " siddhesh at sourceware dot org
2022-01-12 18:06 ` cvs-commit at gcc dot gnu.org [this message]
2022-01-12 18:08 ` siddhesh at sourceware dot org
2022-03-11 15:12 ` cvs-commit at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28746-131-cnZaSJ6WBV@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).