Resolution: Information Provided
Affects Version/s: 0.11.0
Fix Version/s: None
Component/s: Python - Library
Tried to deserialize binary file using deserialize function in thrift.TSerialization.py file. Used TBinaryProtocol and thrift file created by Java developer. Generated ttypes.py have while loop that runs till break if byte=0.
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
if fid == 1:
if ftype == TType.I64:
self.sessionId = iprot.readI64()
As far as I understood protocol cannot have 0 byte and breaks when first 0 appears. Seems as a bug for me! Isn't there more advanced way to check for the end of file?