Fix illegal memory accesses in the assembler when attempting to parse corrup tinput...
authorNick Clifton <nickc@redhat.com>
Mon, 16 Apr 2018 15:39:15 +0000 (16:39 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 16 Apr 2018 15:39:15 +0000 (16:39 +0100)
commitc77852c8916415b089e56271b6ab9f793fdb413c
tree7a18a1c89e154da7ec5282448c5c63bcf49f9047
parentfc7aa874aad7eea29014c5591174d57f81500d69
Fix illegal memory accesses in the assembler when attempting to parse corrup tinput files.

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.
gas/ChangeLog
gas/cond.c
gas/config/obj-elf.c
gas/stabs.c