HomeFreeBSD

Fix an annoying bug in tar. When it converted 'tar zcf' to 'tar -z -c -f'

Description

Fix an annoying bug in tar. When it converted 'tar zcf' to 'tar -z -c -f'
it forgot to null terminate the new argv[] array. If you mixed this
with $TAR_OPTIONS, phkmalloc and a whole bunch of other variables, you
could end up with a segfault. This isn't strictly a phkmalloc victory
since tar walks off the end of an array rather than use uninitialized
malloc memory, but phkmalloc makes it easier to provoke.

Details

Provenance
peterAuthored on Jul 24 2003, 12:04 AM
Parents
rGfc3a3ee7205e: Simplistic C comment re is wrong, use more correct one
Branches
Unknown
Tags
Unknown

Event Timeline