This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/22611] malloc/tst-realloc wrongly assumes that errno must not be modified in case of success


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

--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.26/master has been updated
       via  7a64940a59cfbcfd9ac3895df3a5c00ced4ca268 (commit)
      from  4ebd0c4191c6073cc8a7c5fdcf1d182c4719bcbb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7a64940a59cfbcfd9ac3895df3a5c00ced4ca268

commit 7a64940a59cfbcfd9ac3895df3a5c00ced4ca268
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Fri Dec 29 14:44:57 2017 +0100

    tst-realloc: do not check for errno on success [BZ #22611]

    POSIX explicitly says that applications should check errno only after
    failure, so the errno value can be clobbered on success as long as it
    is not set to zero.

    Changelog:
        [BZ #22611]
        * malloc/tst-realloc.c (do_test): Remove the test checking that errno
        is unchanged on success.
    (cherry picked from commit f8aa69be445f65bb36cb3ae9291423600da7d6d2)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |    6 ++++++
 malloc/tst-realloc.c |    4 ----
 2 files changed, 6 insertions(+), 4 deletions(-)

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]