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

php CompactProtocol readI64 function has bug, when value has 32bit ~64bit, Example:value=1461563457000

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3
    • 0.10.0
    • PHP - Library
    • None
    • PHP 5.6.15 64bits

    Description

      when Varint(int64_val) more than five bytes parseing error,
      parse the five byte should be $hi |= (($byte & 0x7f) >> ($shift - 24));
      becouse the five byte high bits should be high four bits

      Attachments

        Issue Links

          Activity

            People

              lnn1123 lnn1123
              lnn1123 lnn1123
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: