aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-06-19 12:14:16 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-06-21 13:04:01 +0100
commit24865428034f44d9fffe6b2d9a318e1bd507c63a (patch)
treed86d3a456e6ac6988c54cbb1f05e2fff0925ba52 /libctf/ChangeLog
parentPR24689, string table corruption (diff)
downloadbinutils-gdb-24865428034f44d9fffe6b2d9a318e1bd507c63a.tar.gz
binutils-gdb-24865428034f44d9fffe6b2d9a318e1bd507c63a.tar.bz2
binutils-gdb-24865428034f44d9fffe6b2d9a318e1bd507c63a.zip
libctf: handle errors on dynhash insertion better
We were missing several cases where dynhash insertion might fail, likely due to OOM but possibly for other reasons. Pass the errors on. libctf/ * ctf-create.c (ctf_dtd_insert): Pass on error returns from ctf_dynhash_insert. (ctf_dvd_insert): Likewise. (ctf_add_generic): Likewise. (ctf_add_variable): Likewise. * ctf-impl.h: Adjust declarations.
Diffstat (limited to 'libctf/ChangeLog')
-rw-r--r--libctf/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 31ce0381397..886e30bef15 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,12 @@
+2019-06-19 Nick Alcock <nick.alcock@oracle.com>
+
+ * ctf-create.c (ctf_dtd_insert): Pass on error returns from
+ ctf_dynhash_insert.
+ (ctf_dvd_insert): Likewise.
+ (ctf_add_generic): Likewise.
+ (ctf_add_variable): Likewise.
+ * ctf-impl.h: Adjust declarations.
+
2019-06-14 Alan Modra <amodra@gmail.com>
* configure: Regenerate.