summaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-03-22 22:50:18 +1030
committerAlan Modra <amodra@gmail.com>2016-03-22 22:50:18 +1030
commita97fbc7e3ca781b8d95ed8591c6ee65f2d8a798a (patch)
treed774d28a8311173320a89fe640a9f390774bdefd /bfd/dwarf2.c
parent49636823b07446b61ef8cdc17898bef3c8202325 (diff)
Attribute with DW_FORM_flag_present
PR 19850 * dwarf2.c (read_attribute_value): Skip info_ptr check for DW_FORM_flag_present.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 4d6f8fcae1..addfbf51ed 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1003,7 +1003,7 @@ read_attribute_value (struct attribute * attr,
struct dwarf_block *blk;
bfd_size_type amt;
- if (info_ptr >= info_ptr_end)
+ if (info_ptr >= info_ptr_end && form != DW_FORM_flag_present)
{
(*_bfd_error_handler) (_("Dwarf Error: Info pointer extends beyond end of attributes"));
bfd_set_error (bfd_error_bad_value);