]> git.ipfire.org Git - thirdparty/glibc.git/commit
tst-realloc: do not check for errno on success [BZ #22611]
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 29 Dec 2017 13:44:57 +0000 (14:44 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 31 Dec 2017 20:21:27 +0000 (21:21 +0100)
commit7a64940a59cfbcfd9ac3895df3a5c00ced4ca268
treef346de7cd184e2d788adafd3d7061af8c9909694
parent4ebd0c4191c6073cc8a7c5fdcf1d182c4719bcbb
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)
ChangeLog
malloc/tst-realloc.c