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

Read DER BIO: fix for when BIO data is less than seq buffer size #8426

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

SparkiDev
Copy link
Contributor

@SparkiDev SparkiDev commented Feb 6, 2025

Description

wolfssl_read_der_bio did not not handle the length to be read from the BIO being less than the size of the sequence buffer.

Fixes zd#19363

Testing

./configure '--disable-shared' '--enable-opensslall' '--enable-keygen' 'CC=clang -fsanitize=address'
make
./tests/unit.test -test_wolfSSL_d2i_PrivateKeys_bio

Checklist

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

@SparkiDev SparkiDev self-assigned this Feb 6, 2025
@SparkiDev SparkiDev force-pushed the read_der_bio_small_data_fix branch from ab785f7 to dd4bd4d Compare February 6, 2025 22:36
wolfssl_read_der_bio did not not handle the length to be read from the
BIO being less than the size of the sequence buffer.
@SparkiDev SparkiDev force-pushed the read_der_bio_small_data_fix branch from dd4bd4d to ae8b8c4 Compare February 6, 2025 22:46
@SparkiDev
Copy link
Contributor Author

retest this please

Hudson failure

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Feb 6, 2025
@SparkiDev SparkiDev requested a review from wolfSSL-Bot February 6, 2025 23:44
@dgarske dgarske merged commit c668a4e into wolfSSL:master Feb 7, 2025
173 checks passed
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