Task
In src/tri/cloud_orchestrator.zig around line 289, the JSON parsing loop sets offset = sid_end + 1 without checking bounds. If sid_end equals content.len, the next iteration could access out-of-bounds memory.
Current Code
Fix
Add bounds check:
offset = @min(sid_end + 1, content.len);
File
src/tri/cloud_orchestrator.zig — around line 289
Acceptance
zig build compiles without errors
zig fmt passes
@min bounds check present
Task
In
src/tri/cloud_orchestrator.zigaround line 289, the JSON parsing loop setsoffset = sid_end + 1without checking bounds. Ifsid_endequalscontent.len, the next iteration could access out-of-bounds memory.Current Code
Fix
Add bounds check:
File
src/tri/cloud_orchestrator.zig— around line 289Acceptance
zig buildcompiles without errorszig fmtpasses@minbounds check present