Commit c6acf2d
committed
fix integer overflow in dummynet
Found during fuzzing using AFL++:
"strtoul()" returns a large positive number or a negative number.
Next, the sanitizer detects an integer overflow in
line 555 ("bw*= 1000") or in line 558 ("bw*= 1000000") or
in line 563 ("bw*= 8"), and the program crashes with
the error "SIGILL: illegal instruction operand".1 parent 9138043 commit c6acf2d
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
| 556 | + | |
556 | 557 | | |
557 | 558 | | |
558 | | - | |
| 559 | + | |
| 560 | + | |
559 | 561 | | |
560 | 562 | | |
561 | 563 | | |
562 | 564 | | |
563 | | - | |
| 565 | + | |
| 566 | + | |
564 | 567 | | |
565 | 568 | | |
566 | 569 | | |
| |||
0 commit comments