steveloughran opened a new pull request, #3745:
URL: https://github.com/apache/avro/pull/3745

   
   ## What is the purpose of the change
   
   #3625 with size limit checks moved into the NonCopyingByteArrayOutputStream
   
   * guarantees all decompressors get the coverage
   * will make writing a test trivial
   
   There's a new constructor to `NonCopyingByteArrayOutputStream` to set a size 
limit, or no limit, and the default constructor now automatically picks up the 
size set by system property/fallback default.
   
   Those choices could be discussed, with options being
   
   * static function to get "size limited output stream"
   * move fetch and pase of system property into 
`org.apache.avro.SystemLimitException`, where the int parser lives.
   
   AI: No AI was used for this PR.
   
   ## Verifying this change
   
   Needs tests, if people are happy with the design I can put one in whichever 
module people would prefer...it's pretty straightforward
   
   ## Documentation
   
   - Does this pull request introduce a new feature? (yes / no)
   yes
   
   - If yes, how is the feature documented? (not applicable / docs / JavaDocs / 
not documented)
   javadocs
   
   


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