fallintoplace opened a new pull request, #1545: URL: https://github.com/apache/iceberg-go/pull/1545
## What changed Validate negative ReadAt offsets and unknown Seek whence values in MemFS. Both cases now return a PathError wrapping fs.ErrInvalid, and a rejected seek leaves the current position unchanged. ## Why ReadAt previously sliced with a negative index and panicked. Seek accepted any unknown whence value as an absolute position of zero, silently moving the file cursor instead of reporting invalid input. The regression test covers both public file operations and verifies that an invalid seek does not alter the cursor. ## Testing - go test ./io - go vet ./io - go test ./... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
