Skip to content

Commit

Permalink
Merge pull request #953 from onekey-sec/fix-yaffs2-page_size
Browse files Browse the repository at this point in the history
fix(yaffs): extend potential page size list to include 2032 bytes
  • Loading branch information
e3krisztian authored Sep 18, 2024
2 parents 3f2ec81 + 64b827e commit b077f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unblob/handlers/filesystem/yaffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# YAFFS_OBJECT_TYPE_DIRECTORY, YAFFS_OBJECT_TYPE_FILE
BIG_ENDIAN_MAGICS = [0x00_00_00_01, 0x00_00_00_03]

VALID_PAGE_SIZES = [512, 1024, 2048, 4096, 8192, 16384]
VALID_PAGE_SIZES = [512, 1024, 2048, 4096, 8192, 16384, 2032]
VALID_SPARE_SIZES = [16, 32, 64, 128, 256, 512]
YAFFS1_PAGE_SIZE = 512
YAFFS1_SPARE_SIZE = 16
Expand Down

0 comments on commit b077f21

Please sign in to comment.