diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-09-05 11:36:39 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-09-08 08:38:49 +0200 |
commit | d3bb911fd0f53b2c69c96da43cc0f6557f3d2dd8 (patch) | |
tree | 238c3ccc78da7b01cf510ff6c99fe19b4c9d341f /ChangeLog | |
parent | 75d22dc9e2bb1b25b19bac25121bcb31344f5945 (diff) | |
download | gnulib-d3bb911fd0f53b2c69c96da43cc0f6557f3d2dd8.tar.gz |
bitset: check memory allocation
Reported by 江 祖铭 (Zu-Ming Jiang).
With help from Paul Eggert.
https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
* lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
instead of realloc.
When shrinking, accept failures.
* lib/bitset/vector.c (vbitset_resize): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +2019-09-06 Akim Demaille <akim@lrde.epita.fr> + + bitset: check memory allocation + Reported by 江 祖铭 (Zu-Ming Jiang). + With help from Paul Eggert. + https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html + * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc + instead of realloc. + When shrinking, accept failures. + * lib/bitset/vector.c (vbitset_resize): Likewise. + 2019-09-07 Paul Eggert <eggert@cs.ucla.edu> scratch_buffer: sync from glibc |