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

Assert or handle all functions with unused returns

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      Functions like bson_iter_init or bson_iter_recurse consistently are not checked for return values in the code base. Some cases are not expected to fail (on BSON we create) but some may fail on malformed input.

      We may do well do add assertions on such cases, so users will get a more sensible error or stack trace in the possibly rare event that this could occur.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: