You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 18:42:20 UTC

[GitHub] [beam] kennknowles opened a new issue, #18512: Unchecked return value from bis.read() in MutationGroupEncoder#decodeMutation

kennknowles opened a new issue, #18512:
URL: https://github.com/apache/beam/issues/18512

   ```
   
     private Mutation decodeMutation(ByteArrayInputStream bis) throws IOException {
       Mutation.Op op
   = Mutation.Op.values()[bis.read()];
       if (op == Mutation.Op.DELETE) {
         return decodeDelete(bis);
   
   ```
   
   The return value from bis.read() should be checked before it is used to dereference values().
   
   Imported from Jira [BEAM-3140](https://issues.apache.org/jira/browse/BEAM-3140). Original Jira may contain additional context.
   Reported by: yuzhihong@gmail.com.


-- 
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: github-unsubscribe@beam.apache.org.apache.org

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