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>
Этот коммит содержится в:
родитель
5b1350c254
Коммит
20f8f204c8
@ -737,6 +737,8 @@ cpio_open_archive (struct vfs_s_super *super, const vfs_path_t * vpath,
|
|||||||
ssize_t status;
|
ssize_t status;
|
||||||
|
|
||||||
status = cpio_read_head (vpath_element->class, super);
|
status = cpio_read_head (vpath_element->class, super);
|
||||||
|
if (status < 0)
|
||||||
|
return (-1);
|
||||||
|
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user