diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-03-09 00:07:52 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-03-09 00:07:52 +0100 |
commit | a1623bcb7e57029f5e4ed2aaef889df0859ea47f (patch) | |
tree | e1c2bffb8c1dd18f300393479950c5dd4f046898 /src/image.c | |
parent | c90c6319fe3f7dd7e50dc52bc363a04289eb165f (diff) | |
download | 0xFFFF-a1623bcb7e57029f5e4ed2aaef889df0859ea47f.tar.bz2 |
image: Fix detection of jffs2 initfs images
Looks like that some official initfs images are bigger then 3MB, so set limit to 10MB
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index 23d79d8..f31d6c7 100644 --- a/src/image.c +++ b/src/image.c @@ -546,7 +546,7 @@ enum image_type image_type_from_data(struct image * image) { else if ( size >= 4 && memcmp(buf, "\x45\x3d\xcd\x28", 4) == 0 ) /* CRAMFS MAGIC */ return IMAGE_INITFS; else if ( size >= 2 && memcmp(buf, "\x85\x19", 2) == 0 ) { /* JFFS2 MAGIC */ - if ( image->size < 0x300000 ) + if ( image->size < 0x1000000 ) return IMAGE_INITFS; else return IMAGE_ROOTFS; |