New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memory allocate error #705
Comments
|
|
This is caused when a corrupted cpio archive has a ridiculously large size for a symlink. malloc() fails here when trying to allocate memory to contain the entire symlink. I've looked through the surrounding code and it looks like libarchive correctly handles the malloc() failure in this case. I suppose the cpio code could sanity-check the symlink size and return ARCHIVE_FATAL in this case without even trying to read it, but that would be a fairly minor improvement. |
|
I agree with you |
|
but I don't use bsdcpio, my test case bsdtar -tf %file_name% |
|
bsdtar recognizes and extracts many formats, including cpio formats. |
|
I just pushed commit fd7e0c0 which rejects archives with symlinks more than 1MB in size. |
hi guys.

I with use afl & asan found some exceptions with memory allocate.
*download file and remove .png extension
The text was updated successfully, but these errors were encountered: