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

Coverity analysis defect 100116: Out-of-bounds access

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

      Out-of-bounds access to a buffer

      Defect 100116 (STATIC_C)
      Checker OVERRUN (subcategory none)
      File: /src/mongoc/mongoc-sasl.c
      Function _mongoc_sasl_init
      /src/mongoc/mongoc-sasl.c, line: 251
      Overrunning array "sasl->callbacks" of 96 bytes by passing it to a function which accesses it at byte offset 119 using argument "120UL".

             memcpy (&sasl->callbacks, callbacks, sizeof callbacks);
      

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

              Created:
              Updated:
              Resolved: