Skip to content

Commit

Permalink
Fix potential index out of bounds in decodeBlobVersionedHashes (#10294)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored May 13, 2024
1 parent 620d425 commit 64f677a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/blob_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func decodeBlobVersionedHashes(hashes *[]libcommon.Hash, s *rlp.Stream) error {
copy((_hash)[:], b)
*hashes = append(*hashes, _hash)
} else {
return fmt.Errorf("wrong size for blobVersionedHashes: %d, %v", len(b), b[0])
return fmt.Errorf("wrong size for blobVersionedHashes: %d", len(b))
}
}

Expand Down

0 comments on commit 64f677a

Please sign in to comment.