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"}, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits