This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch release/2.26/master updated. glibc-2.26-126-g7a64940
- From: aurel32 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 31 Dec 2017 20:22:30 -0000
- Subject: GNU C Library master sources branch release/2.26/master updated. glibc-2.26-126-g7a64940
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 -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;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)
diff --git a/ChangeLog b/ChangeLog
index 414e931..2e6383b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
+
+ [BZ #22611]
+ * malloc/tst-realloc.c (do_test): Remove the test checking that errno
+ is unchanged on success.
+
2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
Dmitry V. Levin <ldv@altlinux.org>
diff --git a/malloc/tst-realloc.c b/malloc/tst-realloc.c
index 31a58bd..d942c6e 100644
--- a/malloc/tst-realloc.c
+++ b/malloc/tst-realloc.c
@@ -66,10 +66,6 @@ do_test (void)
if (p == NULL)
merror ("realloc (NULL, 10) failed.");
- /* errno should be clear on success (POSIX). */
- if (p != NULL && save != 0)
- merror ("errno is set but should not be");
-
free (p);
p = calloc (20, 1);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
malloc/tst-realloc.c | 4 ----
2 files changed, 6 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources