GNU Binutils upgraded to version 2.39.20221117.88ac930a725
[dragora.git] / patches / binutils / 2.39 / binutils-CVE-38128-dwarf-abbrev-parsing.patch
bloba175bb7f7bd024266998585a6b482f015460b1b1
1 --- binutils.orig/binutils/dwarf.c 2022-08-31 11:58:08.918685348 +0100
2 +++ binutils-2.39/binutils/dwarf.c 2022-08-31 15:24:13.881865797 +0100
3 @@ -6365,7 +6365,11 @@ display_debug_abbrev (struct dwarf_secti
4 list->start_of_next_abbrevs = start;
6 else
7 - start = list->start_of_next_abbrevs;
8 + {
9 + if (start == list->start_of_next_abbrevs)
10 + break;
11 + start = list->start_of_next_abbrevs;
12 + }
14 if (list->first_abbrev == NULL)
15 continue;