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

Coverity analysis defect 76624: Side effect in assertion

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

      Assertion contains an operation with a side effect

      Defect 76624 (STATIC_C)
      Checker ASSERT_SIDE_EFFECT (subcategory none)
      File: /src/mongoc/mongoc-gridfs-file.c
      Function _mongoc_gridfs_file_extend
      /src/mongoc/mongoc-gridfs-file.c, line: 601
      Assignment "file->length = target_length" has a side effect. This code will work differently in a non-debug build.

             BSON_ASSERT (file->length = target_length);
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: