wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Coverity: parameter checking and NULL assignment

Open rlm2002 opened this issue 7 months ago • 0 comments

Description

Adds length check against MAX_OID_SZ in wc_oid_sum(), returns 0 if length exceeds MAX_OID_SZ.

  • Addresses multiple untrusted loop bounds.

Assigns p2 to NULL before next loop iteration.

  • Resource leak issue.

Remove most NULL assignments intest_wolfSSL_ASN1_TIME_adj()

  • unused value

Testing

make check

Checklist

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

rlm2002 avatar Jun 11 '25 20:06 rlm2002