Add decompression size limit in deserializeInner() #24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1 item from #10
Currently
deserializeInner()decompresses without bounds, making it vulnerable to zip bomb attacks (a small compressed payload that expands to gigabytes).Add
io.LimitReaderwrapping the zstd decompressor, usingm.pbOuter.Size(or a reasonable max like 256MB) as the bound. Return an error if the decompressed data exceeds the limit.