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

tf-a-tools: fix rot-key-pw to always NULL terminate #76

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

Conversation

hpalacio
Copy link

The call to 'strncpy' does not NULL terminate the target string.
Neither the allocation of memory for 'rot_key_pw', nor the call to strncpy had into account the NULL termination character which may lead to issues if the adjacent memory is not zero-init.

The call to 'strncpy' does not NULL terminate the target
string.
Neither the allocation of memory for 'rot_key_pw', nor the
call to strncpy had into account the NULL termination character
which may lead to issues if the adjacent memory is not zero-init.

Signed-off-by: Mike Wadsten <[email protected]>
Signed-off-by: Hector Palacios <[email protected]>
@hpalacio
Copy link
Author

This should be back-ported to kirkstone, too.

@BernardPuel
Copy link
Contributor

Thanks Hector for your contribution. I have entered internal ticket for analysis and probable integration.

@BernardPuel
Copy link
Contributor

Should be part of next release that si V5.1.1 (in W46). Thanks a gain for your contribution !

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