Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[factorydata] return error when factorydata length is more than 2kb #90

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

step0035
Copy link
Collaborator

@step0035 step0035 commented Mar 29, 2023

  • check if factorydata length is more than 2048
  • if it is more than 2048, this means factorydata is not flashed
  • NOR flash default value is 0xffff, which might cause it to read 0xffff length of data
  • return to prevent reading from non-existent address

- this means factorydata is not flashed
- return to prevent reading from non-existent address
@step0035 step0035 changed the title [factorydata] return when factorydata length is more than 2kb [factorydata] return error when factorydata length is more than 2kb Mar 29, 2023
@xshuqun xshuqun merged commit 8e6702b into main Apr 3, 2023
@xshuqun xshuqun deleted the factorydata_readlimit branch April 3, 2023 06:15
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.

2 participants