summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/expr/qorderby_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-07-16 02:28:06 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-07-19 07:09:11 +0000
commit03f392f887132d5a2185627eef02db9ecf793396 (patch)
tree56147569244f50de84a8a6437f615c455d83b1fc /src/xmlpatterns/expr/qorderby_p.h
parentd91d3536eb82075aec25f3772c4209e15b7b3060 (diff)
downloadqtxmlpatterns-03f392f887132d5a2185627eef02db9ecf793396.tar.gz
Add some missing initialization
As reported by UBSan: xmlpatterns/expr/qorderby_p.h:78:15: runtime error: load of value 11181584, which is not a valid value for type 'Direction' xmlpatterns/expr/qorderby_p.h:78:15: runtime error: load of value 32766, which is not a valid value for type 'OrderingEmptySequence' xmlpatterns/schema/qxsdstatemachine_p.h:66:11: runtime error: load of value 2979516404, which is not a valid value for type 'NodeName' xmlpatterns/schema/qxsdschemaparser.cpp:340:67: runtime error: load of value 40, which is not a valid value for type 'bool' The init values are chosen to match what zero-initialization would have chosen. Change-Id: Iaf69720476cfe6c117dc2c91f39801a0be8bde54 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/xmlpatterns/expr/qorderby_p.h')
-rw-r--r--src/xmlpatterns/expr/qorderby_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmlpatterns/expr/qorderby_p.h b/src/xmlpatterns/expr/qorderby_p.h
index addddf3..3e4a8f8 100644
--- a/src/xmlpatterns/expr/qorderby_p.h
+++ b/src/xmlpatterns/expr/qorderby_p.h
@@ -97,6 +97,8 @@ namespace QPatternist
* @short Default constructor, which is needed by QVector.
*/
inline OrderSpec()
+ : direction(Ascending),
+ orderingEmptySequence(StaticContext::Greatest)
{
}