mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
ubsan: size_inc_line_addr integer overflow
Fix a fuzzer testcase where a large positive line_delta causes signed overflow when subtracting -5. Signed overflow is perfectly OK here.
This commit is contained in:
parent
f7b623952a
commit
07cf922195
1 changed files with 1 additions and 1 deletions
|
|
@ -1632,7 +1632,7 @@ size_inc_line_addr (int line_delta, addressT addr_delta)
|
|||
}
|
||||
|
||||
/* Bias the line delta by the base. */
|
||||
tmp = line_delta - DWARF2_LINE_BASE;
|
||||
tmp = (unsigned) line_delta - DWARF2_LINE_BASE;
|
||||
|
||||
/* If the line increment is out of range of a special opcode, we
|
||||
must encode it with DW_LNS_advance_line. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue