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

ValueStorage::putString dassert accesses array out of bounds

    • Fully Compatible
    • ALL
    • Hide

      Run the aggregation unit tests under the undefined behavior sanitizer.

      Show
      Run the aggregation unit tests under the undefined behavior sanitizer.
    • Platforms 13 (04/22/16)

      The dassert in ValueStorage::putString, as its comment indicates, may access memory beyond the end of the shortStrStorage array. This is harmless in practice since we know that the byte following is a NUL character, but it still trips the undefined behavior sanitizer. The dassert can be re-written to stay within bounds.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: