Re: [PATCH] initramfs: prevent buffer overflow when unpacking to rootfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Friday, April 2, 2010 - 2:57 pm

On Thu,  1 Apr 2010 12:45:46 +0300
Aaro Koskinen <aaro.koskinen@iki.fi> wrote:


OK, so if I'm understanding this right, the call to

	decompress(buf, len, NULL, flush_buffer, NULL, &my_inptr, error);

has gone and generated more output data than it was asked to generate?

If so, isn't that a bug in the decompressor?  Which one is your system using?

[ wonders why my_inptr is static, and why the sixth arg to decompress_fn
  takes an int* while callers are passing in an unsigned* ]

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] initramfs: prevent buffer overflow when unpack ..., Andrew Morton, (Fri Apr 2, 2:57 pm)