-
Notifications
You must be signed in to change notification settings - Fork 3
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
tar: segfault on copy fiiles from archive #4561
Comments
Branch: 4561_tar_segfault
The cause of segfault is endless recursive call of do_compute_dir_size() because of incorrect handling of very long file/directory name. As a result the structure of opened tar archive may contain a directory with an empty name. |
|
TODO before merge: fix commit message: s/segault/segfault |
|
Typos was not fixed :-(( |
|
Can confirm it doesn't crash any more. There is a caveat though. Path length is 253 bytes and file name 248 bytes which is below 255 max file length for ext3/4 and 4096 max path but it still says:
It's not too long actually.
Also, for sake of simplicity, the tar file used as example should be compressed. It wouldn't change the outcome but would decrease attachment 40 times. |
|
Important
This issue was migrated from Trac:
andrew_b
(@aborodin)Original bug report: https://bugzilla.altlinux.org/50857
The simplest archive that bug is reproduced with is attached.
How to reproduce:
Note
Original attachments:
andrew_b
(@aborodin) onJul 12, 2024 at 17:18 UTC
zaytsev
(@zyv) onJul 18, 2024 at 5:55 UTC
The text was updated successfully, but these errors were encountered: