Repository navigation
docs(monitor-input): NUL/CR-only follow-up (code comment + README + downstream NUL issue) - #441
Merged
Merged
Conversation
Follow-up to PR #434: add an inline comment explaining the memchr choice, README paragraphs documenting the 2.4 capability changes (binary payloads preserved, CR-only line endings supported), and a code comment near the arbitrary_command ctor flagging that downstream c_str() still truncates at embedded NULs (filed as separate follow-up issue for the load-bearing fix). Refs: 2.4 review #38 (Review 14 R3 + R6). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
Reviewers caught that the README's "preserved end-to-end" wording overstated the fix -- the code comments in the same PR document that downstream c_str() re-truncates at the first NUL. Re-worded the README to match the actual scope (loader preserves; dispatch re-truncates, tracked as #439). Also trimmed the verbose ctor comment. Refs: PR #441 reviewers R1+R4+R6.
Collaborator
Author
|
R1+R4+R6 feedback addressed in cada2da: README wording corrected and wrapped in a 2.4 callout; ctor comment trimmed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
memchrcode comment inconfig_types.cppexplaining why byte-count search replacedstrchr(NUL bytes in the metadata prefix don't terminate the search early).monitor_command_list, and CR-only line endings (classic Mac / some Windows exporters) now parse correctly.arbitrary_command::arbitrary_command(const char *cmd)and insidesplit_command_to_argsflagging that downstream.c_str()still re-truncates embedded NUL bytes — the load-from-file fix from PR fix(monitor-input): preserve byte count past NUL; handle CR-only line endings #434 preserves NULs instd::string, but command dispatch re-truncates. This is tracked as a separate follow-up.Follow-up issue
Full end-to-end binary blob support is tracked in: #439
Test plan
config_types.cppfor accuracy and clarity.### Using monitor input filesfor accuracy.🤖 Generated with Claude Code
Note
Low Risk
Comment and README-only changes; no runtime logic modified.
Overview
Documents 2.4 monitor-input behavior in the README: binary payloads are kept through
monitor_command_list, CR-only (\r) line endings parse correctly, and replay still truncates at embedded NUL when commands go througharbitrary_command(const char *)/.c_str()— called out as follow-up #439.Adds matching inline comments in
config_types.cppat thearbitrary_commandctor,split_command_to_args, and thememchrquote search (why byte-count search avoids stopping on NUL in the MONITOR metadata prefix).Reviewed by Cursor Bugbot for commit cada2da. Bugbot is set up for automated code reviews on this repo. Configure here.