Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50166

Coverity analysis defect 115934: Out-of-bounds access

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL

      Out-of-bounds access

      Memory not owned by this buffer will be accessed, causing memory corruption or incorrect computations. Access of memory past the end of a memory buffer
      /src/mongo/db/exec/sbe/values/value.h:496: ARRAY_VS_SINGLETON 115934 Taking address with "smallString" yields a singleton pointer.
      /src/mongo/db/exec/sbe/values/value.h:496: ARRAY_VS_SINGLETON 115934 Assigning: "stringAlias" = "mongo::sbe::value::getSmallStringView(smallString)".
      /src/mongo/db/exec/sbe/values/value.h:498: ARRAY_VS_SINGLETON 115934 Using "stringAlias" as an array. This might corrupt or misinterpret adjacent memory locations.

            Assignee:
            brooke.miller@mongodb.com Brooke Miller
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: