[BusyBox] tar segfaults
Matt Kraai
kraai at alumni.carnegiemellon.edu
Tue Jul 10 10:11:22 MDT 2001
On Tue, Jul 10, 2001 at 02:46:29PM +0200, Jonas Holmberg wrote:
> when extracting a regular file if BUFSIZ < 512. I noticed when I was using an
> older uC-libc with BUFSIZ 500. (BB 0.52)
>
> It's easy to fix: In the function tarExtractRegularFile, either change the two
> occurences of 512 (used for mod operation) to BUFSIZ or change the size of the
> char[] buffer to 512 (or maybe it's supposed to be TAR_BLOCK_SIZE, which is 512).
Thanks for pointing this out. I changed the buffer size to 10240,
which is the same as GNU tar.
Matt
More information about the busybox
mailing list