You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/08/22 06:27:01 UTC

[GitHub] [james-project] chibenwa opened a new pull request #610: JAMES-3611 Use fuzzing to strengthen SearchUtil::getBaseSubject

chibenwa opened a new pull request #610:
URL: https://github.com/apache/james-project/pull/610


   ```
   import java.util.Base64;
   
   import org.apache.james.mailbox.store.search.SearchUtil;
   
   import com.code_intelligence.jazzer.api.FuzzedDataProvider;
   
   public class Fuzzed {
       public static void fuzzerTestOneInput(FuzzedDataProvider fuzzedDataProvider) {
           final byte[] bytes = fuzzedDataProvider.consumeString(128).getBytes();
           final String b64 = new String(Base64.getEncoder().encode(bytes));
   
           try {
               SearchUtil.getBaseSubject(new String(bytes));
           } catch (Exception e) {
               throw new RuntimeException(b64, e);
           }
       }
   }
   ```
   
   Cc @quantranhong1999 


-- 
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: notifications-unsubscribe@james.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


[GitHub] [james-project] chibenwa merged pull request #610: JAMES-3611 Use fuzzing to strengthen SearchUtil::getBaseSubject

Posted by GitBox <gi...@apache.org>.
chibenwa merged pull request #610:
URL: https://github.com/apache/james-project/pull/610


   


-- 
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: notifications-unsubscribe@james.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org