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

Potential out of range panic in Go JSON protocols

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2, 0.9.3
    • 0.10.0
    • Go - Library
    • None
    • Patch Available

    Description

      Slice length check is incorrect and in rare occasions it can cause run-time panic.

       } else if len(f) >= 0 && f[0] == JSON_NULL[0] {
      

      Attachments

        Activity

          People

            nsuke Nobuaki Sukegawa
            nsuke Nobuaki Sukegawa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: