cvs commit: src/contrib/tar/src tar.c

Peter Wemm peter at FreeBSD.org
Wed Jul 23 17:04:03 PDT 2003


peter       2003/07/23 17:04:02 PDT

  FreeBSD src repository

  Modified files:
    contrib/tar/src      tar.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.3       +4 -1      src/contrib/tar/src/tar.c


More information about the cvs-src mailing list