summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/data/qatomicstring_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-07-17 13:37:22 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-07-19 07:11:41 +0000
commitd75868d02ad37dce5806a8d1313b123ff6ce6c09 (patch)
tree27606967dc9e95b5f24501637a20306b8bbc8b0f /src/xmlpatterns/data/qatomicstring_p.h
parentb4b17b2035ce38b1bf4d90458d4c64dc9551c733 (diff)
downloadqtxmlpatterns-d75868d02ad37dce5806a8d1313b123ff6ce6c09.tar.gz
Correct return type of QXmlQueryPrivate::staticContext()
As reported by UBSan: qtbase/src/corelib/tools/qshareddata.h:167:13: runtime error: downcast of address 0x2ac9a801a410 which does not point to an object of type 'GenericStaticContext' 0x2ac9a801a410: note: object is of type 'QPatternist::StaticFocusContext' 00 00 00 00 28 95 b7 9d c9 2a 00 00 01 00 00 00 c9 2a 00 00 f0 a1 01 a8 c9 2a 00 00 70 fa 0b 02 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'QPatternist::StaticFocusContext' I had no idea how the QExplicitlySharedDataPointer conversion could ever compile, until I saw that this module defines QT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST which is, of course, utterly broken. Change-Id: Ie392ba74438b6c75fde9fabe09f9b0e655489cd9 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/xmlpatterns/data/qatomicstring_p.h')
0 files changed, 0 insertions, 0 deletions