Skip to content

Conversation

@SORencber
Copy link

Summary: Enforce exact per‑option body size equality; add explicit overflow guards for size arithmetic; reject invalid lengths with EINVAL. Defensive hardening; no API break.

Test Plan: malformed NIOCCTRL (oversized nro_size, invalid types) → EINVAL/ENOTTY/ENXIO; no panic; valid flows unchanged.

Risk: Low; only invalid inputs are rejected earlier.

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

Thank you for taking the time to contribute to FreeBSD!
All issues resolved.

… Enforce exact option body size equality per option type\n- Add explicit overflow guards to size arithmetic (sum)\n- Return EINVAL for invalid sizes; keep behavior for valid requests\n- Defensive hardening; no API break; reduces potential DoS/OOB surfaces

Signed-off-by: Serhat Ömer Rençber <[email protected]>
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.

1 participant