Skip to content

Conversation

@martonilles
Copy link
Contributor

@martonilles martonilles commented Sep 17, 2024

In a sample we see a page_size with 2032 bytes and 16 bytes spare. Apparently the sum of page+spare is 2048 bytes.

As we have many checks to see if a page_size is indeed valid and calculate also spare size, having an additional potential page size should not cause any problem.

As page sizes are tested in the order specified, this new and unlikely case added to the end not to slow down other extractions.

In a sample we see a page_size with 2032 bytes and 16 bytes spare. Apparently
the sum of page+spare is 2048 bytes.

As we have many checks to see if a page_size is indeed valid and calculate
also spare size, having an additional potential page size should not cause
any problem.

As page sizes are tested in the order specified, this new and unlikely case
added to the end not to slow down other extractions.
Copy link
Contributor

@e3krisztian e3krisztian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sample is probably for a device with NOR-flash and inband tags.

Without further samples to support the above, and to provide a better understanding, this is the least intrusive fix we can do now.

@e3krisztian e3krisztian merged commit b077f21 into main Sep 18, 2024
@e3krisztian e3krisztian deleted the fix-yaffs2-page_size branch September 18, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants