On Fri, Nov 25, 2022 at 09:46:04AM +0000, Giovanni Cabiddu wrote: > > I wanted a cap on the number of retries. What if the input is a zip > bomb [1]? OK, but in that case we should just have a flat limit. In which case it also makes no sense to double when retrying (as the limit is so small), if the first decompression fails, we should go straight to the limit. Something like 128K should be sufficient for our current users. Please put this into include/crypto/acompress.h. Thanks, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt