Migrate ordinary I/O from confined file helpers
This commit is contained in:
@@ -373,7 +373,7 @@ func checksumRegularFile(path string, requireJSON bool) (string, error) {
|
||||
if info.Size() == 0 {
|
||||
return "", fmt.Errorf("path %q must be non-empty", path)
|
||||
}
|
||||
data, err := fileops.ReadRegularFile(path, artifacts.MaxExtractionPayloadBytes)
|
||||
data, err := fileops.ReadFileBounded(path, artifacts.MaxExtractionPayloadBytes)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("notarius lane result exceeds or cannot be read within %d-byte limit: %w", artifacts.MaxExtractionPayloadBytes, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user