[Lldb-commits] [lldb] r369611 - The g_format_infos table needs to be updated in concert with the

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 21 19:06:03 PDT 2019


Author: jmolenda
Date: Wed Aug 21 19:06:03 2019
New Revision: 369611

URL: http://llvm.org/viewvc/llvm-project?rev=369611&view=rev
Log:
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.


Modified:
    lldb/trunk/source/DataFormatters/FormatManager.cpp

Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=369611&r1=369610&r2=369611&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/FormatManager.cpp (original)
+++ lldb/trunk/source/DataFormatters/FormatManager.cpp Wed Aug 21 19:06:03 2019
@@ -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"},




More information about the lldb-commits mailing list