diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2018-10-17 16:22:11 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2018-10-18 09:03:03 +0000 |
commit | 6599c1f75832cc9286a3bf88c6b179d006dbb96e (patch) | |
tree | b1cb93f7f32f6311ee27332ef2b77f045838085f /src/3rdparty/pcre2/src/pcre2_intmodedep.h | |
parent | 7f60940fbedef17984e283da41eae94f29fef428 (diff) |
QPicture: fix crash for malformed picture
A file with the correct QPicture magic bytes, but shorter than a full
QPicture file header, could cause the header decoder to access memory
out of bounds. Add a size check to avoid.
As a driveby, generally harden the parsing against malformed files.
[ChangeLog][QtGui][QPicture] Fix crash reading malformed picture file
Task-number: QTBUG-71208
Change-Id: I86eb1f915ca9b3a4b91c7433036d76ed6061e2f0
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/3rdparty/pcre2/src/pcre2_intmodedep.h')
0 files changed, 0 insertions, 0 deletions