Commit 9299ab07 authored by Eirik Aavitsland's avatar Eirik Aavitsland
Browse files

TGA handler: check for out of range image size


Make the decoder fail early to avoid spending time and memory on
attempting to decode a corrupt image file.

Change-Id: Iac35e72de743f412a65d11c58fe7faa275dc4e41
Reviewed-by: default avatarLars Knoll <lars.knoll@qt.io>
(cherry picked from commit 7cfe47a8

)
Reviewed-by: default avatarLiang Qi <liang.qi@qt.io>
parent b3091427
Showing with 8 additions and 0 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment