slachiewicz opened a new pull request, #791:
URL: https://github.com/apache/maven-indexer/pull/791

   `IndexDataReader` and indexer-reader's `ChunkReader` treated an 
`EOFException` on the next record's field count as the end of the index. A gzip 
stream that ends early throws the same exception, so a download cut at a record 
boundary was applied as a complete index. The readers now read the first byte 
of the field count and treat only a clean end of stream there as the end; 
`GZIPInputStream` reports a truncated stream by throwing.
   
   A negative field value length failed with `NegativeArraySizeException` 
rather than `IOException`. Like the MINDEXER-28 handling, both readers now 
reject negative and implausibly large lengths (over 64 MiB) as corrupt data.


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

Reply via email to