PR26741, benign use after free in riscv_parse_prefixed_ext
authorAlan Modra <amodra@gmail.com>
Sun, 3 Jan 2021 23:49:14 +0000 (10:19 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 4 Jan 2021 00:38:05 +0000 (11:08 +1030)
commite9cf3691bfa140469d52815a2307b00eecf7917c
tree5a08c301a555a464e6b84b140587af87966c36e5
parenta7c23ac9317e590893906a4b425ea1344eafdc52
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.
bfd/ChangeLog
bfd/elfxx-riscv.c
This page took 0.027359 seconds and 4 git commands to generate.