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:
Andrew Borodin 2013-08-31 11:01:26 +04:00
parent 5b1350c254
commit 20f8f204c8

View File

@ -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)
{