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

crypto: fix error condition in Verify::VerifyFinal #26238

Closed
wants to merge 1 commit into from

Conversation

tniessen
Copy link
Member

Fail early if key parsing failed, don't try to construct a context out of it. Luckily, OpenSSL makes sure that we do not pass in a nullptr, so this is not a security issue. The observable behavior is still the same under certain assumptions about the error queue at the time, so it is difficult to add a test for this.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Fail early if key parsing failed, don't try to construct a context out of it.
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. labels Feb 21, 2019
@tniessen
Copy link
Member Author

@tniessen
Copy link
Member Author

Thanks for reviewing, landed in 10c3db3.

@tniessen tniessen closed this Feb 23, 2019
tniessen added a commit that referenced this pull request Feb 23, 2019
Fail early if key parsing failed, don't try to construct a context out
of it.

PR-URL: #26238
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
addaleax pushed a commit that referenced this pull request Feb 25, 2019
Fail early if key parsing failed, don't try to construct a context out
of it.

PR-URL: #26238
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@BridgeAR BridgeAR mentioned this pull request Feb 26, 2019
rvagg pushed a commit that referenced this pull request Feb 28, 2019
Fail early if key parsing failed, don't try to construct a context out
of it.

PR-URL: #26238
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants