Skip to content

Add bounded-stack CI, WOLFCOSE_MIN_BUFFERS, and updated minimal builds#38

Merged
mattia-moffa merged 1 commit into
wolfSSL:mainfrom
aidangarske:embedded-memory-and-minimal-build
Jun 6, 2026
Merged

Add bounded-stack CI, WOLFCOSE_MIN_BUFFERS, and updated minimal builds#38
mattia-moffa merged 1 commit into
wolfSSL:mainfrom
aidangarske:embedded-memory-and-minimal-build

Conversation

@aidangarske
Copy link
Copy Markdown
Member

@aidangarske aidangarske commented Jun 2, 2026

Description

Hacker News feedback (item 48340422) that wolfCOSE's "zero
allocation" framing hid stack usage. The library was already zero-heap; this PR
makes that claim precise, enforces it in CI, adds a constrained-target profile,
and documents a genuinely-minimal wolfCrypt build. No new dynamic allocation is introduced; the library stays zero-heap.

  • Add WOLFCOSE_MIN_BUFFERS macro
  • Add bounded stack usage that is also tested in CI with scripts/check_stack_usage.sh
  • update docs

Copilot AI review requested due to automatic review settings June 2, 2026 17:05
@aidangarske aidangarske changed the title Harden embedded memory story: bounded-stack CI, SMALL_FOOTPRINT, minimal builds Add bounded-stack CI, SMALL_FOOTPRINT, and updated minimal builds Jun 2, 2026

This comment was marked as resolved.

wolfSSL-Fenrir-bot

This comment was marked as resolved.

@aidangarske aidangarske added enhancement New feature or request feature Feature addition in progress labels Jun 2, 2026
@aidangarske aidangarske self-assigned this Jun 2, 2026
@aidangarske aidangarske force-pushed the embedded-memory-and-minimal-build branch 2 times, most recently from 6264753 to 7966566 Compare June 3, 2026 18:36
@aidangarske aidangarske marked this pull request as ready for review June 3, 2026 19:17
@aidangarske aidangarske requested a review from dgarske June 3, 2026 20:51
@aidangarske aidangarske force-pushed the embedded-memory-and-minimal-build branch from 7858a16 to a74eb29 Compare June 5, 2026 17:33
@aidangarske aidangarske changed the title Add bounded-stack CI, SMALL_FOOTPRINT, and updated minimal builds Add bounded-stack CI, WOLFCOSE_MIN_BUFFERS, and updated minimal builds Jun 5, 2026
@aidangarske aidangarske force-pushed the embedded-memory-and-minimal-build branch from a74eb29 to 07b1a35 Compare June 5, 2026 17:51
@aidangarske aidangarske requested review from mattia-moffa and removed request for dgarske June 5, 2026 18:04
@mattia-moffa mattia-moffa merged commit 8a1da9d into wolfSSL:main Jun 6, 2026
64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature Feature addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants