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

Coverity analysis defect 105068: Unchecked return value

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

      Value returned from a function is not checked for errors before being used

      Defect 105068 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c
      Function mongoc_gridfs_bucket_open_download_stream
      /src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c, line: 382
      Calling "bson_iter_init" without checking return value (as is done elsewhere 144 out of 177 times).

             bson_iter_init (&iter, &file_doc);
      

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: