diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2021-10-25 14:17:55 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-27 09:40:10 +0000 |
commit | a3b753c2d077313fc9eb93af547051b956e383fc (patch) | |
tree | ed6ada1e050af5713a69b927659d1a7e4e23e0f1 /src/plugins | |
parent | 6a809aaacd161e99026da137b6a35adc4e321e61 (diff) | |
download | qtsvg-a3b753c2d077313fc9eb93af547051b956e383fc.tar.gz |
Do stricter error checking when parsing path nodes
The SVG spec mandates that path parsing should terminate on the first
error encountered, and an error be reported. To improve the handling
of corrupt files, implement such error handling, and also limit the
number of QPainterPath elements to a reasonable range.
Fixes: QTBUG-96044
Change-Id: Ic5e65d6b658516d6f1317c72de365c8c7ad81891
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
(cherry picked from commit 36cfd9efb9b22b891adee9c48d30202289cfa620)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions