Skip to content

Conversation

@paulidale
Copy link
Contributor

If the structures have empty padding bytes, ensure they are zeroed. These structures are added to seed pools as complete blocks including any padding and alignment bytes.

See #8603 for some discussion.

Note that the use of any uninitialised padding bytes in these structures would be harmless. They are used as RNG personalisation material. However, using uninitialised values is bad practice and triggers checkers like valgrind.

If the structures have empty padding bytes, ensure they are zeroed.
These structures are added to seed pools as complete blocks including
any padding and alignment bytes.
@paulidale paulidale mentioned this pull request Mar 29, 2019
2 tasks
@paulidale
Copy link
Contributor Author

Merged, thanks @levitte

@paulidale paulidale closed this Mar 29, 2019
@paulidale paulidale deleted the rand-buffer-cleaning branch March 29, 2019 10:12
levitte pushed a commit that referenced this pull request Mar 29, 2019
If the structures have empty padding bytes, ensure they are zeroed.
These structures are added to seed pools as complete blocks including
any padding and alignment bytes.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #8610)
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