summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/sqldatabase
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2025-06-11 18:03:12 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2025-06-12 18:58:33 +0200
commit3af5e42bdd6ffcf6d9ca386583add2329372056f (patch)
treeafe0e748376c4c5d35a0a1bfeeccdeba0a07179c /src/sql/doc/snippets/sqldatabase
parentf9fbdba3a1d8cc40681f3df5fcccc05a76b5211e (diff)
Http2ProtocolHandler: fix logic error with potential use-after-free
We previously asserted that the reply was not nullptr, except in some special circumstance. But then we proceeded to dereference it anyway. This was then recently changed to be an if-check, but that just highlighted the logic-flaw (and made static analyzers warn about it...) What we want to assert is that the stream object is valid and conditionally return early if the reply is nullptr, which it is for promised streams, since no request has been made yet so no reply is created. At the same time, update the logic in the QHttp2Stream to not store or emit header-related signals for a stream that has been reset. Pick-to: 6.10 6.9 Change-Id: I55d69bbedc027893f6ad125c29468a34e7fb406f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase')
0 files changed, 0 insertions, 0 deletions