garydgregory commented on PR #777:
URL: https://github.com/apache/commons-compress/pull/777#issuecomment-4827734106

   @tomasilluminati 
   My initial reaction to the ratio check feature is that it's nice but I doubt 
folks will know how to use it properly without shooting themselves in the foot. 
"Our app blew up when we allowed users to import files of type foo but 
everything was fine with bar files" kind of thing. That said, there is a way to 
implement a ratio check I think using 
`org.apache.commons.io.input.ProxyInputStream.AbstractBuilder.setAfterRead(IOIntConsumer)`
 where you'd do the check in the consumer (`BoundedInputStream` extends 
`ProxyInputStream`).
   This one can simmer... ;) maybe @ppkarwasz has some thoughts.


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