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

DRBG: fix coverity issues #5976

Closed
wants to merge 2 commits into from

Conversation

mspncp
Copy link
Contributor

@mspncp mspncp commented Apr 17, 2018

[extended tests]
(Note: This label will be removed when merging.)

  • drbg_lib.c: Silence coverity warning: the comment preceding the
    RAND_DRBG_instantiate() call explicitely states that the error
    is ignored and explains the reason why.

  • drbgtest: Add checks for the return values of RAND_bytes() and
    RAND_priv_bytes() to run_multi_thread_test().

Checklist
  • tests are added or updated

[extended tests]

- drbg_lib.c: Silence coverity warning: the comment preceding the
  RAND_DRBG_instantiate() call explicitely states that the error
  is ignored and explains the reason why.

- drbgtest: Add checks for the return values of RAND_bytes() and
  RAND_priv_bytes() to run_multi_thread_test().
@mspncp
Copy link
Contributor Author

mspncp commented Apr 17, 2018

It's really funny that coveralls fails because the tests succeeded: https://coveralls.io/builds/16551416/source?filename=test%2Fdrbgtest.c#L869

@mspncp mspncp self-assigned this Apr 17, 2018
@mspncp mspncp added the approval: done This pull request has the required number of approvals label Apr 17, 2018
Fixed a typo on-the-fly.
levitte pushed a commit that referenced this pull request Apr 17, 2018
- drbg_lib.c: Silence coverity warning: the comment preceding the
  RAND_DRBG_instantiate() call explicitely states that the error
  is ignored and explains the reason why.

- drbgtest: Add checks for the return values of RAND_bytes() and
  RAND_priv_bytes() to run_multi_thread_test().

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #5976)
@mspncp
Copy link
Contributor Author

mspncp commented Apr 17, 2018

Merged, thanks!

@mspncp mspncp closed this Apr 17, 2018
@mspncp mspncp deleted the pr-fix-drbg-coverity-issues branch April 17, 2018 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: done This pull request has the required number of approvals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants