Skip to content

MCDC part 10: Increase ssl_api coverage - #12293

Open
danielinux wants to merge 4 commits into
wolfSSL:masterfrom
danielinux:mcdc-10-ssl-api
Open

danielinux wants to merge 4 commits into
wolfSSL:masterfrom
danielinux:mcdc-10-ssl-api

Conversation

@danielinux

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings November 27, 2026 09:20
@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.

🟡 Changes recommended

The short-buffer test reuses populated data and does not check the remaining bytes, allowing getters that copy nothing or exceed the one-byte bound to pass.

1 open issue
What changed in this PR

This PR extends the TLS handshake API tests with coverage for client and server random getters, supporting the ongoing MCDC testing work.

Changes:

  • Adds a TLS 1.2 in-memory handshake test for both random getters.
  • Exercises length queries, invalid arguments, copy limits, peer consistency, and access after freeing handshake arrays.
  • Registers the new test in the ssl_hs test group.
File Description
tests/​api/​test_ssl_hs.h Declares and registers the handshake random test.
tests/​api/​test_ssl_hs.c Implements random getter and buffer-bound checks.

Review effort: Balanced

Comment thread tests/api/test_ssl_hs.c Resolved
@danielinux danielinux changed the title MCDC part 10: Exercise TLS handshake random getters and buffer bounds MCDC part 10: Increase ssl_api coverage Nov 27, 2026
@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