crashtesting: assert that !rtl::isAscii in xmlError message
probably detected since: commit 089ce740f9f97f9c7b13e37a31acfc94984e9a3e Date: Thu Feb 24 17:45:18 2022 +0300 Deduplicate rtl_*String_newConcat*L or similar Change-Id: I69ac57bd5718a4da85516e2a2afa79dc2b04665e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131068 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
06bd8d70ea
commit
ffa0dedf93
@ -138,14 +138,11 @@ namespace DOM
|
||||
|
||||
static OUString make_error_message(xmlParserCtxtPtr ctxt)
|
||||
{
|
||||
OUStringBuffer buf;
|
||||
buf.appendAscii(ctxt->lastError.message);
|
||||
buf.append("Line: ");
|
||||
buf.append(static_cast<sal_Int32>(ctxt->lastError.line));
|
||||
buf.append("\nColumn: ");
|
||||
buf.append(static_cast<sal_Int32>(ctxt->lastError.int2));
|
||||
OUString msg = buf.makeStringAndClear();
|
||||
return msg;
|
||||
return OUString(ctxt->lastError.message, strlen(ctxt->lastError.message), RTL_TEXTENCODING_ASCII_US) +
|
||||
"Line: " +
|
||||
OUString::number(static_cast<sal_Int32>(ctxt->lastError.line)) +
|
||||
"\nColumn: " +
|
||||
OUString::number(static_cast<sal_Int32>(ctxt->lastError.int2));
|
||||
}
|
||||
|
||||
// -- callbacks and context struct for parsing from stream
|
||||
|
Loading…
x
Reference in New Issue
Block a user