Coverity analysis defect 100116: Out-of-bounds access

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            A. Jesse Jiryu Davis
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: