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 4632b49 commit dca60e1Copy full SHA for dca60e1
codetrie/codetrie.go
@@ -240,8 +240,10 @@ func setFIO(chunks []*Chunk) {
240
// restData is number of data bytes in next chunks.
241
restData := (j + size + 1) - chunkSize
242
spanningChunks := int(math.Ceil(float64(restData) / float64(chunkSize)))
243
+ // Mostly happens in case of Solidity metadata at
244
+ // the end of code.
245
if i+spanningChunks >= len(chunks) {
- panic("pushdata exceeds code length")
246
+ continue
247
}
248
k := 1
249
for restData > chunkSize {
0 commit comments