Coverity analysis defect 115934: Out-of-bounds access

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: