Fix handling of corrupt STABS enum type strings.
authorNick Clifton <nickc@redhat.com>
Tue, 14 Feb 2017 14:07:29 +0000 (14:07 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 14 Feb 2017 14:07:29 +0000 (14:07 +0000)
commita2dea0b20bc66a4c287c3c50002b8c3b3e9d953a
tree15d50ee1ef472a206bec48b99f3527a28c9598e2
parentb32e566ba6ee02687c6def22ade0899076adf7dd
Fix handling of corrupt STABS enum type strings.

PR binutils/21157
* stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
pairs.
(parse_number): Exit early if passed an empty string.
binutils/ChangeLog
binutils/stabs.c