diff --git a/vfs/cpio.c b/vfs/cpio.c
index f9fa1a8..5eeef95 100644
a
|
b
|
static ssize_t cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *supe |
290 | 290 | for(i = 0; i < (HEAD_LENGTH >> 1); i++) |
291 | 291 | u.shorts[i] = GUINT16_SWAP_LE_BE_CONSTANT(u.shorts[i]); |
292 | 292 | } |
293 | | g_assert(u.buf.c_magic == 070707); |
294 | 293 | |
295 | | if (u.buf.c_namesize == 0 || u.buf.c_namesize > MC_MAXPATHLEN) { |
| 294 | if (u.buf.c_magic != 070707 || |
| 295 | u.buf.c_namesize == 0 || u.buf.c_namesize > MC_MAXPATHLEN) { |
296 | 296 | message (D_ERROR, MSG_ERROR, _("Corrupted cpio header encountered in\n%s"), |
297 | 297 | super->name); |
298 | 298 | return STATUS_FAIL; |