You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Donham (JIRA)" <ji...@apache.org> on 2011/05/20 18:26:47 UTC

[jira] [Created] (THRIFT-1175) Bad data can cause TProtocolUtil.skip to take a lot of CPU in a do-nothing loop

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