Skip to content

fix(nap_pmp): reject buffers that are too short on responses#34

Merged
divagant-martian merged 3 commits intomainfrom
fix-decoding-panic
Sep 8, 2025
Merged

fix(nap_pmp): reject buffers that are too short on responses#34
divagant-martian merged 3 commits intomainfrom
fix-decoding-panic

Conversation

@divagant-martian
Copy link
Contributor

@divagant-martian divagant-martian commented Sep 8, 2025

Description

Fixes a panic in decoding a response from the nat box due to incorrect buffer size verifications. We were checking that the buffer size is within range for all different kinds of responses, but for the specific map response the buffer size is exact.

Also updates some libraries due to advisories

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@divagant-martian divagant-martian changed the title reject buffers that are too short on responses fix(nap_pmp): reject buffers that are too short on responses Sep 8, 2025
@github-actions
Copy link

github-actions bot commented Sep 8, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/net-tools/pr/34/docs/net_tools/

Last updated: 2025-09-08T04:48:29Z

@divagant-martian divagant-martian enabled auto-merge (squash) September 8, 2025 04:50
@n0bot n0bot bot added this to iroh Sep 8, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Sep 8, 2025
@divagant-martian divagant-martian merged commit 8663d69 into main Sep 8, 2025
27 of 28 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants