Skip to content

MCDC Part 10: asn coverage - #12333

Merged
philljj merged 9 commits into
wolfSSL:masterfrom
danielinux:mcdc-10-asn
Dec 4, 2026
Merged

philljj merged 9 commits into
wolfSSL:masterfrom
danielinux:mcdc-10-asn

Conversation

@danielinux

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:16
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

gcc-arm-cortex-m0plus

  • FLASH: .text -144 B (-0.2%, 72,672 B / 262,144 B, total: 28% used)

gcc-arm-cortex-m3

  • FLASH: .text +724 B (+0.5%, 135,242 B / 262,144 B, total: 52% used)

gcc-arm-cortex-m4

  • FLASH: .rodata.CSWTCH.2 +8 B, .rodata.str1.1 +99 B, .text +640 B (+0.3%, 214,232 B / 262,144 B, total: 82% used)

gcc-arm-cortex-m4-baremetal

  • FLASH: .text -128 B (-0.2%, 75,444 B / 262,144 B, total: 29% used)

gcc-arm-cortex-m4-crypto-only

  • FLASH: .rodata.CSWTCH.2 +8 B, .rodata.str1.1 +99 B (+0.1%, 185,019 B / 262,144 B, total: 71% used)

gcc-arm-cortex-m4-dtls13

  • FLASH: .text +896 B (+0.4%, 201,572 B / 1,048,576 B, total: 19% used)

gcc-arm-cortex-m4-min-ecc

  • FLASH: .text -128 B (-0.2%, 69,910 B / 262,144 B, total: 27% used)

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .rodata +160 B, .text +1,664 B (+0.2%, 807,400 B / 1,048,576 B, total: 77% used)
  • RAM: .data +4 B (+0.0%, 121,764 B / 262,144 B, total: 46% used)

gcc-arm-cortex-m4-pkcs7

  • FLASH: .rodata.CSWTCH.2 +8 B, .rodata.str1.1 +99 B, .text -256 B (-0.1%, 227,324 B / 262,144 B, total: 87% used)

gcc-arm-cortex-m4-pq

  • FLASH: .rodata +112 B, .text +512 B (+0.2%, 320,224 B / 1,048,576 B, total: 31% used)

gcc-arm-cortex-m4-rsa-only

  • FLASH: .rodata +112 B, .text +896 B (+0.3%, 349,976 B / 1,048,576 B, total: 33% used)

gcc-arm-cortex-m4-sp-math

  • FLASH: .text -128 B (-0.2%, 69,910 B / 262,144 B, total: 27% used)

gcc-arm-cortex-m4-tls12

  • FLASH: .text +768 B (+0.6%, 136,014 B / 262,144 B, total: 52% used)

gcc-arm-cortex-m4-tls13

  • FLASH: .rodata.CSWTCH.2 +8 B, .rodata.str1.1 +99 B, .text +704 B (+0.3%, 256,690 B / 262,144 B, total: 98% used)

gcc-arm-cortex-m7

  • FLASH: .rodata.CSWTCH.2 +8 B, .rodata.str1.1 +99 B, .text +640 B (+0.3%, 214,232 B / 262,144 B, total: 82% used)

gcc-arm-cortex-m7-pq

  • FLASH: .rodata +112 B, .text +448 B (+0.2%, 321,056 B / 1,048,576 B, total: 31% used)

gcc-arm-cortex-m7-tls13

  • FLASH: .rodata.CSWTCH.2 +8 B, .rodata.str1.1 +99 B, .text +640 B (+0.3%, 256,690 B / 262,144 B, total: 98% used)

stm32-sim-stm32h753

  • FLASH: .text +11,148 B (+5.3%, 221,304 B / 2,097,152 B, total: 11% used)

zephyr-frdm_rw612

  • FLASH: rodata +32 B, text +296 B (+0.1%, 297,108 B / 67,108,864 B, total: 0% used)

Catch memory regressions in CI with MemBrowse. Free for open source.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

@wolfSSL-Fenrir-bot
wolfSSL-Fenrir-bot dismissed their stale review December 4, 2026 09:18

Fenrir's latest completed scan found no issues; clearing the prior automated change request.

@danielinux danielinux assigned wolfSSL-Bot and unassigned danielinux Dec 4, 2026
@philljj philljj self-assigned this Dec 4, 2026

@philljj philljj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tests good with multi-test asn and related

@philljj
philljj merged commit a999fb5 into wolfSSL:master Dec 4, 2026
441 of 447 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.

5 participants