Repository navigation
MCDC Part 10: asn coverage - #12333
Conversation
|
There was a problem hiding this comment.
🟡 Changes recommended
The new oversized-OID assertion expects BUFFER_E, but ParseCRL_Extensions() normalizes it to ASN_PARSE_E, causing the test to fail whenever WC_ASN_UNKNOWN_EXT_CB is enabled.
1 open issue
What changed in this PR
This PR expands ASN.1 modified condition/decision coverage in wolfSSL’s white-box and API tests without changing library implementation code.
Changes:
- Adds boundary and error-path cases for ASN.1 parsing, names, OIDs, signatures, and certificate helpers.
- Extends CRL callback, OCSP signer, and certificate rollover coverage.
- Adds trusted-certificate PEM conversion tests and adjusts expectations for configured path-length limits.
| File | Description |
|---|---|
| tests/unit-mcdc/test_asn_whitebox.c | Tests invalid descriptor depth and OID second-arc boundaries. |
| tests/unit-mcdc/test_asn_revocation_whitebox.c | Adds OCSP signer and 32-bit CRL callback cases. |
| tests/unit-mcdc/test_asn_fault_whitebox.c | Tests extension OID capacity and invalid DSA parameter sizes. |
| tests/unit-mcdc/test_asn_ext_whitebox.c | Expands name validation and configurable path-length coverage. |
| tests/unit-mcdc/test_asn_certgen_whitebox.c | Tests absent raw-name handling during certificate generation. |
| tests/unit-mcdc/test_asn_cert_whitebox.c | Expands certificate parsing, rollover, and helper coverage. |
| tests/api/test_certman.c | Tests CRL callback ordering and limited path-length expectations. |
| tests/api/test_asn.h | Registers the trusted-certificate PEM conversion test. |
| tests/api/test_asn.c | Adds ASN.1 boundary, PEM conversion, and raw-subject API tests. |
Review effort: Balanced
0fc37c6 to
9699f7b
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12333
Scan targets checked: wolfssl-bugs
Not reviewed (no scan target covers them): tests/api/test_asn.h
Coverage: 8 of 8 in-scope changed file(s) opened by the reviewer
Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
Review tier: Max
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12333
Scan targets checked: wolfssl-bugs
Not reviewed (no scan target covers them): tests/api/test_asn.h
Coverage: 1 of 1 in-scope changed file(s) opened by the reviewer
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
Review tier: Lite
Fenrir's latest completed scan found no issues; clearing the prior automated change request.
philljj
left a comment
There was a problem hiding this comment.
tests good with multi-test asn and related

No description provided.