Bad data can cause TProtocolUtil.skip to take a lot of CPU in a do-nothing loop
-------------------------------------------------------------------------------

                 Key: THRIFT-1175
                 URL: https://issues.apache.org/jira/browse/THRIFT-1175
             Project: Thrift
          Issue Type: Bug
          Components: Java - Library
            Reporter: Jake Donham


If, due to bad data, skip gets to the LIST case with a large size and invalid 
elemType, it loops doing nothing (since nothing happens in the recursive call 
to skip with an invalid elemType), taking a lot of CPU. Same for the MAP and 
SET cases.

The default case in skip should throw a TProtocolException so invalid elemTypes 
are caught.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to