Jeremy W. Sherman created THRIFT-2986:
-----------------------------------------
Summary: Audit Cocoa library to address architecture-ignorant
byte-swapping
Key: THRIFT-2986
URL: https://issues.apache.org/jira/browse/THRIFT-2986
Project: Thrift
Issue Type: Task
Components: Cocoa - Library
Affects Versions: 0.9.2
Reporter: Jeremy W. Sherman
This happens at least in TFramedTransport, where -flush manually swaps the
length. Except, on a big-endian platform, it just swapped it from network byte
order.
For 32-bit values, {{htonl()}} will suffice, though the CFSwap… or NSSwap…
families might be a better choice depending on the types in play.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)