ValueStorage::putString dassert accesses array out of bounds

XMLWordPrintableJSON

    • 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)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
              Reporter:
              Andrew Morrow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: