diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-08-30 20:10:56 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-08-30 20:10:56 +0200 |
commit | 5898f4548efdcd7c0fd437a74eeb80facc51a117 (patch) | |
tree | 3388b5acb0e092a716110ba3cfe176b01d3e72d8 /ChangeLog | |
parent | a9da0bb2667ab20f1dbcd0a9ae6846db02fbc96a (diff) | |
download | glibc-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-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. |