Skip to content

Commit 99a55af

Browse files
authored
Merge pull request #175 from gHashTag/feat/issue-174
fix(orchestrator): add bounds check for offset in cloud_orchestrator.zig parsing
2 parents 095dc53 + c406bd9 commit 99a55af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tri/cloud_orchestrator.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ fn loadState() void {
286286
entry.service_id_len = @min(sid.len, 128);
287287
@memcpy(entry.service_id[0..entry.service_id_len], sid[0..entry.service_id_len]);
288288
agent_count += 1;
289-
offset = sid_end + 1;
289+
offset = @min(sid_end + 1, content.len);
290290
}
291291
}
292292

0 commit comments

Comments
 (0)