Skip to content

scan-build fixes#6427

Merged
bandi13 merged 1 commit intowolfSSL:masterfrom
SparkiDev:scan-build_fixes_1
May 19, 2023
Merged

scan-build fixes#6427
bandi13 merged 1 commit intowolfSSL:masterfrom
SparkiDev:scan-build_fixes_1

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

sp_mulmod

  • scan-build getting confused with size of result
  • don't check result size as checked already
  • split out implementation of sp_mulmod from check

StoreEccKey

  • ensure pubKey is not NULL even though all uses will not be

GetCertKey

  • ensure source is not NULL
  • cert->source may be NULL in incorrect usages of APIs

Testing

./configure --disable-shared CC=clang
scan-build-10 make

Checklist

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

sp_mulmod
 - scan-build getting confused with size of result
 - don't check result size as checked already
 - split out implementation of sp_mulmod from check

StoreEccKey
 - ensure pubKey is not NULL even though all uses will not be

GetCertKey
 - ensure source is not NULL
 - cert->source may be NULL in incorrect usages of APIs
@SparkiDev SparkiDev assigned SparkiDev, dgarske and bandi13 and unassigned SparkiDev May 19, 2023
Copy link
Copy Markdown
Contributor

@bandi13 bandi13 left a comment

Choose a reason for hiding this comment

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

Tested locally and seems to resolve issues

@bandi13 bandi13 merged commit f3b66a3 into wolfSSL:master May 19, 2023
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