| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes: https://github.com/libarchive/libarchive/issues/1386
|
|
|
|
| |
Closes #1320
|
|
|
|
|
|
|
|
|
|
|
|
| |
“archive_entry_free”
The function “archive_entry_free” is implemented in the way that only
two functions are called which tolerate the passing of null pointers.
It is therefore not needed that a function caller repeats a corresponding check.
This issue was fixed by using the software “Coccinelle 1.0.7”.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
|
| |
|
|
|
| |
Sponsored by: Tarsnap Backup Inc.
|
|
|
|
|
|
| |
separator '\' character into cpio, pax, ustar, gtar and zip archives,
because it is not interoperable between Windows and POSIX platform,
so we should replace '\' character in the pathnames with '/'.
|
|
|
|
| |
to 'type2', possible lose of data.
|
|
|
|
| |
Properly set a clear error message when archive_{write,read}_set_options failed.
|
|
|
|
|
|
| |
alignment to read headers.
SVN-Revision: 3691
|
|
|
|
|
|
| |
report the failure to the caller as much as we can instead of calling __archive_errx().
SVN-Revision: 3345
|
|
|
|
| |
SVN-Revision: 3334
|
|
|
|
| |
SVN-Revision: 3306
|
|
|
|
| |
SVN-Revision: 2784
|
|
|
|
|
|
|
|
|
|
| |
on various problems:
* Missing name
* Missing size (except for hardlinks)
* Missing filetype
* Size too large for format
SVN-Revision: 2782
|
|
|
|
|
|
| |
the duplicate copies of this function.
SVN-Revision: 2262
|
|
|
|
| |
SVN-Revision: 2203
|
|
|
|
|
|
| |
the new/open/close/free lifecycle terminology.
SVN-Revision: 2004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Change __archive_check_magic to return a status code.
* Change callers to use the archive_check_magic() wrapper macro,
which calls __archive_check_magic and returns immediately
if there's an ARCHIVE_FATAL status.
* Update a bunch of API calls to actually do magic state checks.
I've also changed __archive_check_magic around a little bit:
* Magic number checks still call abort().
* State failures still call abort()
* Starting with libarchive 3.0, state failures will return ARCHIVE_FATAL.
SVN-Revision: 2003
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of files. But, the old API is supported almost entirely unchanged, which
I wasn't certain would be possible.
Big changes:
* You can add more than one write filter by using
archive_write_add_filter_{bzip2,compress,gzip,lzma,xz}.
This will be more interesting when we have uuencode, RPM, encryption.
* The old archive_write_set_compression_XXXX are shorthands for
"remove all the current filters and add this one." They're
deprecated and scheduled to be removed in libarchive 4.0.
* The internal API and life cycle for write filters has been
rationalized: create, set options, open, write, close, free.
* New utility functions provide information about each filter
when there's more than one: code, name, and number of bytes processed
* Old archive_bytes_compressed(), etc, are implemented in terms of
the more generic new functions.
* The read side was generalized to also support the new utility
functions.
In particular, the write filters are much simpler since each
one doesn't have to deal with blocking. In this version, there's
still a "write_add_filter_none" that handles blocking, but I
think I'll soon fold that down into the client wrapper and
add_filter_none will become a no-op. I think this also gets
us a big step closer to multi-volume support on the write side.
SVN-Revision: 1920
|
|
|
|
| |
SVN-Revision: 1786
|
|
|
|
|
|
|
|
| |
On Win64, the size of 'int' is stil 4 bytes and the size of 'size_t'
is 8 bytes. A conversion from 'size_t' to 'int', causes warning
with compiling.
SVN-Revision: 1772
|
|
|
|
|
|
|
| |
Also, restructure the index number handling to include a truncation
check.
SVN-Revision: 1714
|
|
|
|
|
|
| |
Found by Clang Static Analyzer.
SVN-Revision: 1616
|
|
|
|
|
|
|
|
|
|
| |
- Value stored to 'cpio' is never read.
- Although the value stored to 'v' is used in the enclosing expression,
the value is never actually read from 'v'.
Found by Clang Static Analyzer.
SVN-Revision: 1615
|
|
|
|
|
|
| |
This fixes some hardlink-detection issues on Windows: NTFS uses 64-bit inode values, but Windows ino_t is only 16 bits.
SVN-Revision: 1463
|
|
|
|
| |
SVN-Revision: 1457
|
|
|
|
| |
SVN-Revision: 491
|
|
SVN-Revision: 1
|