Skip to content

Coverity: fix more null derefs#9990

Open
rlm2002 wants to merge 1 commit intowolfSSL:masterfrom
rlm2002:coverity
Open

Coverity: fix more null derefs#9990
rlm2002 wants to merge 1 commit intowolfSSL:masterfrom
rlm2002:coverity

Conversation

@rlm2002
Copy link
Contributor

@rlm2002 rlm2002 commented Mar 16, 2026

Description

Adds on to #9960, should clear 558861

Testing

./configure --enable-all && make check

Checklist

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

@rlm2002 rlm2002 self-assigned this Mar 16, 2026
@JacobBarthelmeh
Copy link
Contributor

I suspect this was resolved with some nightly multi-test clang tidy fixes merged in today. #9977

Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like one more that Coverity found vs what was in the clang tidy report. Thanks.

@JacobBarthelmeh JacobBarthelmeh requested a review from Copilot March 16, 2026 23:26
@rlm2002
Copy link
Contributor Author

rlm2002 commented Mar 16, 2026

Was just about to say that. Thanks.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extends prior Coverity-driven hardening to avoid additional potential null dereferences during ECC private key decoding cleanup.

Changes:

  • Prevents dereferencing key when freeing ASN.1 get-data state in wc_EccPrivateKeyDecode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

4 participants