We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71031e commit 26aa505Copy full SHA for 26aa505
triedb/pathdb/history_trienode_test.go
@@ -694,7 +694,10 @@ func TestDecodeSingleCorruptedData(t *testing.T) {
694
// Test with corrupted varint in key section
695
corrupted := make([]byte, len(keySection))
696
copy(corrupted, keySection)
697
- corrupted[5] = 0xFF // Corrupt varint
+ // Fill first 10 bytes with 0xFF to create a varint overflow (>64 bits)
698
+ for i := range 10 {
699
+ corrupted[i] = 0xFF
700
+ }
701
_, err = decodeSingle(corrupted, nil)
702
if err == nil {
703
t.Fatal("Expected error for corrupted varint")
0 commit comments