kientzle    2007-10-27 22:45:40 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_support_compression_none.c 
  Log:
  When skipping input data, don't overflow a 32-bit size_t.
  This can only happen on 32-bit systems when you're reading
  an uncompressed archive and the skip request is an exact
  multiple of 4G (e.g., skipping a tar entry with an 8G body).
  
  The symptom is that the read_ahead() ends up returning zero
  bytes, and the extraction stops with a premature end-of-file.
  
  Using '1' here is more correct anyway, as it allows read_ahead()
  to function opportunistically and minimize copying.
  
  MFC after: 5 days
  
  Revision  Changes    Path
  1.18      +1 -1      
src/lib/libarchive/archive_read_support_compression_none.c
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to