diff options
author | Bert Münnich <ber.t@posteo.de> | 2017-11-23 14:35:32 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2017-11-23 14:35:34 +0100 |
commit | f02661879ff0efefc6751d927c2e721e64ad79f0 (patch) | |
tree | 863e487a8dbb6621616793adb762090eb10dbe38 /LICENSE | |
parent | 9dabc5f9883b80286b91f73ea4dcf9fd3d1ad11c (diff) |
Reject text files resembling TGA images
Fixes issue #295
The imlib2 TGA loader returns an imlib image handle without any actual data
when given a text file like this:
T
Content-Type: application/javascript
Content-Length: 3836
Last-Modified: Wed, 23 Sep 2015 12:25:47 GMT
Etag: "56029a4b-efc"
Expires: Sat, 20 Aug 2016 15:14:33 GMT
Cache-Control: max-age=604800, public
Accept-Ranges: bytes
Fortunately, `imlib_image_get_data()` returns NULL in this case, so that we can
use it as an additional check when opening files.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions