Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2026

Fix TCompactProtocol 64 bit builds

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.2, 0.11.0
    • Component/s: C++ - Library
    • Labels:
      None
    • Environment:

      Mac 64, Win 64, Linux 64

    • Patch Info:
      Patch Available

      Description

      TCompactProtocol has several places where it truncates a size_t to a 32-bit value.

      TCompactProtocol also does bitwise operations on signed values, which has undefined behavior.

        Attachments

        1. compact_int_stuff.patch
          2 kB
          Ben Craig

          Issue Links

            Activity

              People

              • Assignee:
                ben.craig Ben Craig
                Reporter:
                ben.craig Ben Craig
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: