We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c995ae + f2f139e commit 4b09fcaCopy full SHA for 4b09fca
src/signatures/jffs2.rs
@@ -25,7 +25,7 @@ pub fn jffs2_magic() -> Vec<Vec<u8>> {
25
/// Parse and validate a JFFS2 image
26
pub fn jffs2_parser(file_data: &[u8], offset: usize) -> Result<SignatureResult, SignatureError> {
27
// Useful contstants
28
- const MAX_PAGE_SIZE: usize = 0x10000;
+ const MAX_PAGE_SIZE: usize = 0x20000;
29
const MIN_VALID_NODE_COUNT: usize = 2;
30
const JFFS2_BIG_ENDIAN_MAGIC: &[u8; 2] = b"\x19\x85";
31
const JFFS2_LITTLE_ENDIAN_MAGIC: &[u8; 2] = b"\x85\x19";
0 commit comments