Commit 815fefb
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.
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>1 parent 0eb1f23 commit 815fefb
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