Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9
-
NodeJS 10.4, Thrift 0.9
-
Patch Available
Description
Thrift for NodeJS is reading bytes as unsigned. The Apache Thrift specification describes them as signed.
I changed the readByte function in both TFramedTransport and TBufferedTransport to call a new readByte method in binary.js that properly converts to a signed byte. Unit test for the method is included in binary.test.js