Skip to content

esp: fenrir fixes - #182

Merged
danielinux merged 4 commits into
wolfSSL:masterfrom
philljj:fenrir_fixes
Sep 30, 2026
Merged

danielinux merged 4 commits into
wolfSSL:masterfrom
philljj:fenrir_fixes

Conversation

@philljj

@philljj philljj commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

misc fixes:

  • esp_print_field: handle short (< 4) fields (F-11437).
  • esp_transport_wrap: defer esp_state_save until success (F-13163).
  • esp_send: handle esp_send err (F-6032).
  • esp_send: check len not greater than frame (F-13205).

@philljj philljj self-assigned this Sep 29, 2026
Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:00

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 3 Medium severity · 2 Low severity

Open (5)
What changed in this PR

This PR applies two ESP-related fixes: safer debug printing for short packet fields and deferring ESP state persistence until the wrap operation succeeds.

Changes:

  • Update esp_print_field to avoid out-of-bounds reads when a field is shorter than 4 bytes.
  • Defer esp_state_save() until the end of esp_transport_wrap() after successful packet construction.
  • Switch several debug prints from LOG to ESP_LOG in the DEBUG_ESP path.
File Description
src/​wolfesp.c Fix short-field debug printing and adjust outbound ESP sequence/state saving semantics

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/wolfesp.c Outdated
Comment thread src/wolfesp.c Outdated
Comment thread src/wolfesp.c Outdated
Comment thread src/wolfesp.c
Comment thread src/wolfesp.c
@philljj philljj changed the title esp: two fenrir fixes esp: fenrir fixes Sep 30, 2026
@philljj
philljj requested a review from danielinux September 30, 2026 04:01
@danielinux
danielinux merged commit 202147a into wolfSSL:master Sep 30, 2026
47 checks passed
@philljj
philljj deleted the fenrir_fixes branch September 30, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants