Skip to content

Commit 4b09fca

Browse files
authored
Merge pull request #890 from ReFirmLabs/jffs2_page_size
Bump up allowed page size in JFFS2 analysis
2 parents 6c995ae + f2f139e commit 4b09fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signatures/jffs2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn jffs2_magic() -> Vec<Vec<u8>> {
2525
/// Parse and validate a JFFS2 image
2626
pub fn jffs2_parser(file_data: &[u8], offset: usize) -> Result<SignatureResult, SignatureError> {
2727
// Useful contstants
28-
const MAX_PAGE_SIZE: usize = 0x10000;
28+
const MAX_PAGE_SIZE: usize = 0x20000;
2929
const MIN_VALID_NODE_COUNT: usize = 2;
3030
const JFFS2_BIG_ENDIAN_MAGIC: &[u8; 2] = b"\x19\x85";
3131
const JFFS2_LITTLE_ENDIAN_MAGIC: &[u8; 2] = b"\x85\x19";

0 commit comments

Comments
 (0)