summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-08-22 02:06:03 +0000
committerJason Molenda <jmolenda@apple.com>2019-08-22 02:06:03 +0000
commitca4409b4dc157bdf7a57f7c8be984492577341f4 (patch)
tree9197063cfbcc56ee20ab879a6b075eba7e0f491c
parent246750c2a91951fc4b77ebe43d568f47843e6399 (diff)
downloadbcm5719-llvm-ca4409b4dc157bdf7a57f7c8be984492577341f4.tar.gz
bcm5719-llvm-ca4409b4dc157bdf7a57f7c8be984492577341f4.zip
The g_format_infos table needs to be updated in concert with the
enum Format entries; else we can crash in a place like FormatManager::GetFormatAsCString(). We should add bounds checks to prevent this more reliably, but for tonight I'm just adding this entry to keep an address-sanitizer test run working. llvm-svn: 369611
-rw-r--r--lldb/source/DataFormatters/FormatManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp
index e218687c3e4..24038ed29c9 100644
--- a/lldb/source/DataFormatters/FormatManager.cpp
+++ b/lldb/source/DataFormatters/FormatManager.cpp
@@ -47,6 +47,7 @@ static FormatInfo g_format_infos[] = {
{eFormatFloat, 'f', "float"},
{eFormatOctal, 'o', "octal"},
{eFormatOSType, 'O', "OSType"},
+ {eFormatUnicode8, 'u', "unicode8"},
{eFormatUnicode16, 'U', "unicode16"},
{eFormatUnicode32, '\0', "unicode32"},
{eFormatUnsigned, 'u', "unsigned decimal"},
OpenPOWER on IntegriCloud