PR binutils/19310
* dwarf.c (display_debug_frames): Recode range test to avoid
undefined behaviour.
+2015-12-08 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/19310
+ * dwarf.c (display_debug_frames): Recode range test to avoid
+ undefined behaviour.
+
2015-12-03 Tristan Gingold <gingold@adacore.com>
* od-macho.c (bfd_mach_o_header_flags_name): Add name
case DW_CFA_def_cfa_expression:
ul = LEB ();
- if (start >= block_end || start + ul > block_end || start + ul < start)
+ if (start >= block_end || ul > (unsigned long) (block_end - start))
{
printf (_(" DW_CFA_def_cfa_expression: <corrupt len %lu>\n"), ul);
break;