theobisproject commented on pull request #120:
URL: https://github.com/apache/commons-compress/pull/120#issuecomment-674373279


   I am using this project https://github.com/rohanpadhye/jqf to do the fuzzing 
via the AFL bridge provided. This was the fuzz method implementation I used
   ```java
   @Fuzz
   public void sevenzOom(@From(InputStreamGenerator.class) InputStream in) {
       try (SevenZFile sevenZFile = new SevenZFile(new 
SeekableInMemoryByteChannel(IOUtils.toByteArray(in)))) {
           Assume.assumeTrue(sevenZFile.getNextEntry() != null);
       } catch (IOException e) {
           // Ignore
       }
   }
   ```


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to