mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
Use `math.MaxInt` instead of `math.MaxUint32` for size validation. On 32-bit systems, `int` is 32 bits, so values between `MaxInt32` and `MaxUint32` would pass the check but overflow to negative when cast to `int`, causing slice bounds panic. |
||
|---|---|---|
| .. | ||
| database | ||
| hashdb | ||
| internal | ||
| pathdb | ||
| database.go | ||
| generate.go | ||
| generate_test.go | ||
| history.go | ||
| preimages.go | ||
| preimages_test.go | ||
| states.go | ||