fix: close workspace preprocessing contract gaps
This commit is contained in:
@@ -57,6 +57,9 @@ func (r Runner) Run(ctx context.Context, args []string, stdin io.Reader) (Result
|
||||
// RunBounded streams each pipe into a preallocated fixed-capacity collector. It owns the
|
||||
// process group and tears it down on the first overflow or cancellation.
|
||||
func (r Runner) RunBounded(ctx context.Context, args []string, stdin io.Reader, limits CaptureLimits) (Result, error) {
|
||||
if result, handled, err := runBoundedPlatform(ctx, r, args, stdin, limits); handled {
|
||||
return result, err
|
||||
}
|
||||
if limits.StdoutBytes < 0 || limits.StderrBytes < 0 {
|
||||
return Result{}, ErrOutputLimit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user