pr23054
authorMatthias Klose <doko@debian.org>
Tue, 29 May 2018 13:46:35 +0000 (14:46 +0100)
committerMatthias Klose <doko@debian.org>
Tue, 29 May 2018 13:46:35 +0000 (14:46 +0100)
commitd31795795cdcfc949d2db67aa9c979aee8f6a3ab
treece69068cc43c2d66faff7724f10831667359af80
parent163f4fb3e4cf7227e4cdcbacf9bcc61aeb741f0f
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