]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: dedup: fix a broken error path in string dedup
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:42:55 +0000 (18:42 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:23:07 +0000 (21:23 +0100)
commitadc6ca003a31e160ffb2dc39be535dbe26d7c2dc
tree5e0ff60c4737ed8924608be2e1df6f141766df63
parent3a6e1f87e71a38ea8d49b9b12b81a4d2fe3fad89
libctf: dedup: fix a broken error path in string dedup

If we run out of memory updating the string counts, set the right errno:
ctf_dynhash_insert returns a *negative* error value, and we want a positive
one in the ctf_errno.
libctf/ctf-dedup.c