sevenzip
sevenzip copied to clipboard
fix: Prevent panics discovered by fuzzing
A number of uint64 values read from the file are used for sizing
slices however really large values will induce a panic which can happen
when fuzzing.
For now, check these values are no greater than math.MaxUint32 which
is safely within the Golang limit for slices and probably large enough.
Some values also should be greater than zero so add an additional check for that where necessary.