Migrate ordinary I/O from confined file helpers
This commit is contained in:
@@ -497,7 +497,7 @@ func validateNonEmptyContent(path string) error {
|
||||
}
|
||||
|
||||
func readResolvedArtifact(path, category string) ([]byte, error) {
|
||||
data, err := fileops.ReadRegularFile(path, MaxResolvedArtifactBytes)
|
||||
data, err := fileops.ReadFileBounded(path, MaxResolvedArtifactBytes)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("resolved %s exceeds or cannot be read within %d-byte limit: %w", category, MaxResolvedArtifactBytes, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user