fallintoplace opened a new pull request, #1618:
URL: https://github.com/apache/iceberg-go/pull/1618

   ## What changed
   
   Validate that encoded and decoded `FileScanTask` byte ranges fit within the 
primary data file. The bounds check uses subtraction so `start + length` cannot 
overflow.
   
   ## Why
   
   The codec rejected negative values but accepted starts beyond EOF, ranges 
ending beyond EOF, and overflowing range sums. Those values cannot describe a 
valid segment of the encoded data file.
   
   ## Testing
   
   - Added full-file, suffix, and zero-length-at-EOF cases
   - Added beyond-EOF and integer-overflow cases
   - Added direct decode coverage for a malformed envelope
   - `go test ./codec`


-- 
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]

Reply via email to