Skip to content

tls: return immediately if kyber_id2type() fails#6984

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
res0nance:pqc-crash-fix
Nov 21, 2023
Merged

tls: return immediately if kyber_id2type() fails#6984
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
res0nance:pqc-crash-fix

Conversation

@res0nance
Copy link
Copy Markdown
Contributor

@res0nance res0nance commented Nov 18, 2023

Description

This prevents a crash as ecc_key is not initialized but the free function is still called.

Fixes zd#16743

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

This prevents a crash as ecc_key is not initialized but the
free function is still called.
@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@res0nance res0nance marked this pull request as ready for review November 18, 2023 07:51
@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

Ok to test

@JacobBarthelmeh JacobBarthelmeh merged commit ebbeb6c into wolfSSL:master Nov 21, 2023
@res0nance res0nance deleted the pqc-crash-fix branch November 21, 2023 16:36
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.

3 participants