mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-28 03:39:56 -04:00
7cd22ccbc9
The truncation slice and the demux stdout byte-cap had no docker-layer tests — only the handler's Truncated wiring was exercised through the fake, so a mis-slice or a dropped cap would have gone unnoticed. Extract find-output parsing into a pure parseFindEntries and take the byte cap as a demuxExecStdout parameter, then unit-test both boundaries (at cap / cap+1 / over-limit stream). Also bound how many paths one container-files request may list (maxContainerListPaths), so the per-path entry cap can't be multiplied by an attacker-chosen path count into a large fan-out or response body. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>