Repository navigation
fix(scan): escape all control characters in scanner JSON output - #205
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Review complete. No blocking issues — 2 nitpicks below. 🧹 Nitpicks (2) — 🟢 2 low
This PR hardens the JSON serialization path in
Reviewed commit: 0dbd46b |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Devin Review found 1 finding. Devin automatically fixed it.
Fixed by Devin (1)
- Scan failures on large literals — Buffers now sized to the exact escaped length; 75 MiB literal round-trips.
Summary
build_scan_jsonintemplates/full/wasm_wrapper.conly escaped",\,\n,\r,\t, so token text containing other control bytes (e.g.\x01inside a string literal or comment) produced invalid JSON andscan/scanSyncfailed to parse it.< 0x20not already handled are now written as\u00XX.versions/18/src/wasm_wrapper.cviapnpm copy:templates.versions/18/test/scan.test.jschecking both scan APIs keep control bytes in literals and comments.Redo of just the scanner part of #183. PG 18 build +
pnpm testpass locally (151/151).Implemented in session Escape control characters in scanner JSON output
Review with Devin · Open in Devin Desktop
Summary by CodeRabbit