mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #3064: crash in case of incorrect cpio content within rpm.
(cpio_open_archive): handle error of cpio header reading. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
5b1350c254
commit
20f8f204c8
@ -737,6 +737,8 @@ cpio_open_archive (struct vfs_s_super *super, const vfs_path_t * vpath,
|
||||
ssize_t status;
|
||||
|
||||
status = cpio_read_head (vpath_element->class, super);
|
||||
if (status < 0)
|
||||
return (-1);
|
||||
|
||||
switch (status)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user