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
This commit is contained in:
Jason Molenda 2019-08-22 02:06:03 +00:00
parent 246750c2a9
commit ca4409b4dc
1 changed files with 1 additions and 0 deletions

View File

@ -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"},