diff options
author | Alan Modra <amodra@gmail.com> | 2021-01-04 10:19:14 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-01-04 11:08:05 +1030 |
commit | e9cf3691bfa140469d52815a2307b00eecf7917c (patch) | |
tree | 5a08c301a555a464e6b84b140587af87966c36e5 /bfd/ChangeLog | |
parent | a7c23ac9317e590893906a4b425ea1344eafdc52 (diff) | |
download | binutils-e9cf3691bfa140469d52815a2307b00eecf7917c.zip binutils-e9cf3691bfa140469d52815a2307b00eecf7917c.tar.gz binutils-e9cf3691bfa140469d52815a2307b00eecf7917c.tar.bz2 |
PR26741, benign use after free in riscv_parse_prefixed_ext
ISO/IEC 9899:1999 C standard "J.2 Undefined behavior" says the
following is undefined behaviour:
"The value of a pointer that refers to space deallocated by a call to
the free or realloc function is used (7.20.3)."
PR 26741
* elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
calculating subset version length.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d760a4a..a72e811 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2021-01-04 Alan Modra <amodra@gmail.com> + + PR 26741 + * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after + calculating subset version length. + 2021-01-01 Nicolas Boulenguez <nicolas@debian.org> * xcofflink.c: Correct spelling in comments. |