Commit a9923b5
committed
Add Integer Overflow Sanity Check
This change adds a sanity check prior to a static cast of `int32_t` to `int64_t` to use as an offset.
While the current code cannot enter this state, this protects against future changes.1 parent ebf8bff commit a9923b5
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
611 | 617 | | |
612 | 618 | | |
613 | 619 | | |
| |||
0 commit comments