diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-03 13:42:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-03 15:33:36 +0200 |
commit | 12a7a3d57d3dcf222b13fa9143c37736f8ea3d0b (patch) | |
tree | 0cf118576f8e313fd5321e2ee49b73546c79b2ae /sax | |
parent | 8db4b89e6b4a0f6be6e1040aec9fd9c0c0bdd608 (diff) |
Fix crashtest fdo77855.odt
regression from commit
commit 9814c1f2edf56ecc0f31001db9234ef335488879
use fastparser in SvXMLPropertySetContext subclasses
and add some asserts to find the problems earlier.
Change-Id: Ief64f813f2ef7ec005f682713dadb1be47cbcd15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101998
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index 2fe579648ce5..8566cab2b7e6 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -38,6 +38,7 @@ #include <osl/diagnose.h> #include <rtl/character.hxx> +#include <sal/log.hxx> using namespace ::std; using namespace ::osl; @@ -579,6 +580,7 @@ void CheckValidName(OUString const& rName) if (c == ':') { // see https://www.w3.org/TR/REC-xml-names/#ns-qualnames + SAL_WARN_IF(hasColon, "sax", "only one colon allowed: " << rName); assert(!hasColon && "only one colon allowed"); hasColon = true; } @@ -593,6 +595,7 @@ void CheckValidName(OUString const& rName) { // https://www.w3.org/TR/xml11/#NT-NameChar // (currently we don't warn about invalid start chars) + SAL_WARN("sax", "unexpected character in attribute name: " << rName); assert(!"unexpected character in attribute name"); } } |