summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@theqtcompany.com>2015-08-18 14:06:07 +0200
committeraavit <eirik.aavitsland@theqtcompany.com>2015-09-01 08:21:53 +0000
commitb4ed054e2f6b4c460f64c33b61b8800dc78f9e6d (patch)
tree9c42c18de9b8c11dbe29938f3214536c2c18a019 /src/plugins/platforms
parentfee16baca1e1db441c1d95952373aa324f704990 (diff)
PPM image format: avoid useless processing on truncated files
For ascii formatted files, the handler would not stop processing on a premature EOF, but instead continue to fill the whole image memory area byte by byte. This could lead to unexpected CPU exhaustion in the case of a small image file declaring huge image dimensions, but having no content. Instead, check for EOF for each scanline and quit processing if found. Change-Id: I8dbcd7eb34553873e49706d61b5752f22e04eb6a Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions