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

ValueStorage::putString dassert accesses array out of bounds

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Run the aggregation unit tests under the undefined behavior sanitizer.

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

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: