Skip to content

MCDC part 10: Increase coverage of tls modules - #12294

Open
danielinux wants to merge 6 commits into
wolfSSL:masterfrom
danielinux:mcdc-10-tls-core
Open

danielinux wants to merge 6 commits into
wolfSSL:masterfrom
danielinux:mcdc-10-tls-core

Conversation

@danielinux

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings November 27, 2026 09:22
@danielinux danielinux self-assigned this Nov 27, 2026

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.

🟢 Approval recommended

There are no active review issues for the added Diffie–Hellman parameter-copy tests.

No open issues 🎉

What changed in this PR

This PR extends TLS internal white-box coverage with tests for Diffie–Hellman parameter copying, supporting the ongoing MCDC coverage work.

Changes:

  • Adds fault injection for the first and second allocations in CopySSL_CTX_DhParams.
  • Checks allocation-failure results and successful copying, then frees copied parameters.
  • Guards the test for compatible DH, allocator, and non-FIPS/non-self-test configurations.
File Description
tests/​unit-mcdc/​test_internal_nullguard_whitebox.c Adds and invokes the DH parameter-copy fault-injection test.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

zephyr-frdm_rw612

  • FLASH: datas +16 B, log_const_area -8 B, rodata +108 B, text +13,928 B (+5.0%, 296,508 B / 67,108,864 B, total: 0% used)
  • RAM: bss +49 B, datas +16 B (+0.1%, 58,423 B / 983,040 B, total: 6% used)

No memory changes detected for:


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

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.

2 participants