pr23054
authorMatthias Klose <doko@debian.org>
Fri, 22 Jun 2018 06:11:21 +0000 (07:11 +0100)
committerMatthias Klose <doko@debian.org>
Fri, 22 Jun 2018 06:11:21 +0000 (07:11 +0100)
commit49b488210fc47c9ce582e6a724584bf7fa96b77d
tree3aa97bfd69fd0e6931661b5158c7a11a916beb3f
parentbca420cb42491fcf79c563ea1f7d6d00ebdd3cb1
pr23054

# DP: Fix PR binutils/23054, memory corruption in as.

gas/

2018-04-16  Nick Clifton  <nickc@redhat.com>

PR 23054
* cond.c (s_ifsef): Replace use of obstack_copy with obstack_alloc
followed by memcpy.
(s_if, s_ifb, s_ifc, s_ifeqs): Likewise.
* obj-elf.c (elf_adjust_symtab): Check for local symbols before
attempting to dereference the sy_next field of a symbol.
* stabs.c (get_stab_string_offset): Fail if there is no string
following the stab directive.

Gbp-Pq: Name pr23054.diff
gas/cond.c
gas/config/obj-elf.c
gas/stabs.c