Skip to content

Commit 31fd9be

Browse files
committed
ubsan: emit_inc_line_addr integer overflow
Commit 07cf922 fixed the one in size_inc_line_addr. Silly me missed the identical overflow in emit_inc_line_addr
1 parent ff4c035 commit 31fd9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gas/dwarf2dbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ emit_inc_line_addr (int line_delta, addressT addr_delta, char *p, int len)
16941694
}
16951695

16961696
/* Bias the line delta by the base. */
1697-
tmp = line_delta - DWARF2_LINE_BASE;
1697+
tmp = (unsigned) line_delta - DWARF2_LINE_BASE;
16981698

16991699
/* If the line increment is out of range of a special opcode, we
17001700
must encode it with DW_LNS_advance_line. */

0 commit comments

Comments
 (0)