Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2310

Return error instead of asserting for malformed JSON

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: libbson
    • Labels:
      None

      In some cases of malformed JSON we're asserting instead of returning a useful error message.

      Some repros:

      [],[{'abc': 1}]
      {},[{'abc': 1}]
      

      Passing these via json-to-bson will trigger asserts.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: