Thrift deserializer hangs when deserializing empty string
---------------------------------------------------------
Key: THRIFT-547
URL: https://issues.apache.org/jira/browse/THRIFT-547
Project: Thrift
Issue Type: Bug
Components: Library (Ruby)
Affects Versions: 0.1
Environment: ruby 1.8.6
Reporter: Dayo Esho
Priority: Minor
Expect this to throw an error on empty strings and any other strings that
cannot be deserialized. Here is some code to reproduce:
require 'thrift'
class MyClass
include ::Thrift::Struct
FIELDS = {}
def struct_fields; FIELDS; end
def validate; end
end
deserializer = Thrift::Deserializer.new(Thrift::CompactProtocolFactory.new)
deserializer.deserialize(MyClass.new, '') ###### hangs
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.