Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-188

Return error if the any lengths are negative

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.0.1
    • None
    • None
    • None

    Description

      Since lengths in BSON are int32's we could have invalid BSON where this value is negative. The code should catch this whenever we read an int32 and return an error if the value is negative instead of potentially panicking or causing some error further down the call chain.

      Attachments

        Activity

          People

            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: