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

Coverity analysis defect 103522: Dereference null return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Fully Compatible

    Description

      Return value of function which returns null is dereferenced without checking

      Defect 103522 (STATIC_C)
      Checker NULL_RETURNS (subcategory none)
      File: /src/mongoc/mongoc-cursor-legacy.c
      Function _mongoc_cursor_op_getmore
      /src/mongoc/mongoc-cursor-legacy.c, line: 127
      Assigning: "server_stream" = null return value from "_mongoc_cursor_fetch_stream".

             server_stream = _mongoc_cursor_fetch_stream (cursor);

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: