Commit 3f760a6
fix(security): add bounds checking for remaining unsafe number conversions
- Add bounds checking for uint64 to int64 conversion in RawQuantityResponse.ToInt64()
- Add missing uint64 case in hexToDecimal() function with proper bounds checking
- Ensure all large integer values are properly validated before conversion to prevent overflow
These fixes address security vulnerabilities identified in the number conversion code,
preventing potential integer overflow issues when processing blockchain data with
large numeric values.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 34ce97d commit 3f760a6
File tree
2 files changed
+11
-1
lines changed- cmd/monitorv2/renderer
- rpctypes
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
2567 | 2573 | | |
2568 | 2574 | | |
2569 | 2575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
678 | 683 | | |
679 | | - | |
680 | 684 | | |
681 | 685 | | |
682 | 686 | | |
| |||
0 commit comments