Skip to content

Commit

Permalink
fix a possible index out of range crash
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed Jan 9, 2023
1 parent 475ed65 commit 3771b58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/builder/file.go
Expand Up @@ -109,6 +109,7 @@ func fileTreeRecursive(depth int, children []ipld.Link, childLen []uint64, src c
}
totalSize += sz
children = append(children, nxt)
childLen = append(childLen, sz)
blksizes = append(blksizes, sz)
}
if len(children) == 0 {
Expand Down

0 comments on commit 3771b58

Please sign in to comment.