summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-08-30 20:10:56 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-08-30 20:10:56 +0200
commit5898f4548efdcd7c0fd437a74eeb80facc51a117 (patch)
tree3388b5acb0e092a716110ba3cfe176b01d3e72d8 /ChangeLog
parenta9da0bb2667ab20f1dbcd0a9ae6846db02fbc96a (diff)
downloadglibc-5898f4548efdcd7c0fd437a74eeb80facc51a117.tar.gz
dynarray: Set errno on overflow-induced allocation failure
This allows the caller to return directly on such an error, with an appropriate errno value.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b0f01c2207..1d8bcde330 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2017-08-30 Florian Weimer <fweimer@redhat.com>
+ * malloc/dynarray_emplace_enlarge.c
+ (__libc_dynarray_emplace_enlarge): Set errno on overflow.
+ * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
+ * malloc/tst-dynarray.c (test_long_overflow): New function.
+ (do_test): Call it.
+
+2017-08-30 Florian Weimer <fweimer@redhat.com>
+
* malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
(set_arena_corrupt): Remove definitions.
(mtrim): Do not check for corrupt arena.