diff options
author | Michael Stahl <mstahl@redhat.com> | 2018-02-28 21:28:55 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-03-02 09:51:55 +0100 |
commit | 1bd9fcafe67cac9404c8c96553a262c048802c25 (patch) | |
tree | cff22442b06f8c803ce641627324ad6f4489b7c9 /sax | |
parent | 3d5a7631942171c2d73fbb172c2a9e7a50e9c3e3 (diff) |
tdf#115429 sax,xmloff: assert on empty attribute names & namespaces
Surely that's indication of a bug somewhere.
Change-Id: Ic6219d8eb7f22301d8c4da98b2132ae3ef0467b5
Reviewed-on: https://gerrit.libreoffice.org/50579
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index fa91125b2245..a9f0baf7a2c0 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -80,6 +80,7 @@ void FastAttributeList::clear() void FastAttributeList::add( sal_Int32 nToken, const sal_Char* pValue, size_t nValueLength ) { + assert(nToken != -1); maAttributeTokens.push_back( nToken ); sal_Int32 nWritePosition = maAttributeValues.back(); maAttributeValues.push_back( maAttributeValues.back() + nValueLength + 1 ); |