Skip to content

Ensure ProtocolUtil checks buffer capacity before memcpy#60

Merged
japertechnology merged 1 commit into
masterfrom
codex/check-buffer-capacity-before-memcpy
Sep 2, 2025
Merged

Ensure ProtocolUtil checks buffer capacity before memcpy#60
japertechnology merged 1 commit into
masterfrom
codex/check-buffer-capacity-before-memcpy

Conversation

@japertechnology

Copy link
Copy Markdown
Owner

Summary

  • Calculate remaining buffer capacity and verify string lengths before copying
  • Guard against copying when source is null or length is zero

Testing

  • cmake -S . -B build -DINPUTLEAP_BUILD_GUI=OFF -DINPUTLEAP_BUILD_TESTS=OFF
  • cmake --build build -j$(nproc)
  • cd build && ctest

https://chatgpt.com/codex/tasks/task_b_68b64a1eb980832597aac3e557d845d0

@japertechnology japertechnology merged commit f8dfb4e into master Sep 2, 2025
2 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant