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

fdt: increase supported image number to MAX_NUM_IMGS, catch overflows #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beku-epitome
Copy link

The previous g_images buffer would be overflown if e.g. TEE was included in the FIT image, causing other globals to be overwritten, and eventually segfaulting the program.

  1. Increase the g_images buffer size
  2. Pass the buffer size to the parser, and limit the parsing to that limit

…errors

The previous g_images buffer would be overflown if e.g. TEE was included
in the FIT image, causing other globals to be overwritten, and eventually
segfaulting the program.
1. Increase the g_images buffer size
2. Pass the buffer size to the parser, and limit the parsing to that limit

Signed-off-by: Benedek Kupper <[email protected]>
@utkarshguptanxp
Copy link
Contributor

Hello, thank you for the PR and apologies for the delay. We are reviewing the fix and will get back to you soon.

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