diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-11-09 17:13:54 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-11-11 16:34:50 +0100 |
commit | 43aaf74f606de6ec97cb3c06c4e6dcee242c01d7 (patch) | |
tree | d20e05681e06603d39d460083e7669dc085e3fe5 /util | |
parent | 7aa68ee6f2e08ce0b4f5c698a8c012895f738dd2 (diff) |
QXmlStreamReader: don't store pointers
They were pointing into the QHash structure which could
be invalidated on insert if growing was needed. This
caused some user-after-free issues.
Indexing into the QHash is quite fast, so let's just
store the name and a pointer to the QHash to do that.
Fixes: QTBUG-88246
Change-Id: If7f9b1c6ea7557c5bd0869b42b1b84aa824cc6ce
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions