crashtesting: assert that !rtl::isAscii in xmlError message
probably detected since:
commit 089ce740f9
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:
@@ -138,14 +138,11 @@ namespace DOM
|
|||||||
|
|
||||||
static OUString make_error_message(xmlParserCtxtPtr ctxt)
|
static OUString make_error_message(xmlParserCtxtPtr ctxt)
|
||||||
{
|
{
|
||||||
OUStringBuffer buf;
|
return OUString(ctxt->lastError.message, strlen(ctxt->lastError.message), RTL_TEXTENCODING_ASCII_US) +
|
||||||
buf.appendAscii(ctxt->lastError.message);
|
"Line: " +
|
||||||
buf.append("Line: ");
|
OUString::number(static_cast<sal_Int32>(ctxt->lastError.line)) +
|
||||||
buf.append(static_cast<sal_Int32>(ctxt->lastError.line));
|
"\nColumn: " +
|
||||||
buf.append("\nColumn: ");
|
OUString::number(static_cast<sal_Int32>(ctxt->lastError.int2));
|
||||||
buf.append(static_cast<sal_Int32>(ctxt->lastError.int2));
|
|
||||||
OUString msg = buf.makeStringAndClear();
|
|
||||||
return msg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -- callbacks and context struct for parsing from stream
|
// -- callbacks and context struct for parsing from stream
|
||||||
|
Reference in New Issue
Block a user