On Fri, Nov 25, 2022 at 10:04:28AM +0000, Giovanni Cabiddu wrote: > > Just double checking if I understood correctly. > At the first iteration, i.e. first call to decompress, allocate a > destination buffer of 2 * src_len rounded up to 4K. If this job fails > allocate a destination buffer of 128K and retry. If this fails, terminate. Right, that's what I was suggesting. Oh and please add the limit to include/crypto/acompress.h so that it's part of the API. Thanks, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt