Albert Astals Cid
e45b65e814
rgb: Fix crash in fuzzed image
...
An image without color channels makes no sense
2019-01-28 21:48:26 +01:00
Albert Astals Cid
7e86e62e86
pcx: Fix crash on fuzzed image
2019-01-28 21:40:42 +01:00
Albert Astals Cid
03c3c07004
Fix tests on jenkins
...
Qt also has a tga image plugin so unless we make sure ours is used first
tests are not testing what they should
On a side note their plugin fails our tests so someone with enough time
should report the failures to them
2019-01-28 21:27:22 +01:00
Albert Astals Cid
0e21713267
rgb: fix crash in fuzzed file
2019-01-28 21:10:18 +01:00
Albert Astals Cid
188271a5d0
xcf: initialize layer mode
...
https://gitlab.gnome.org/GNOME/gimp/raw/master/devel-docs/xcf.txt
When reading old XCF files that lack this property, assume mode==0.
2019-01-28 21:05:29 +01:00
Albert Astals Cid
311296dd19
xcf: initialize layer opacity
...
https://gitlab.gnome.org/GNOME/gimp/raw/master/devel-docs/xcf.txt
When reading old XCF files that lack this property, full opacity
should be assumed.
2019-01-28 20:31:18 +01:00
Albert Astals Cid
d6ae11a691
xcf: set buffer to 0 if read less data that expected
...
Fixes MemorySanitizer: use-of-uninitialized-value on fuzzed file
2019-01-28 20:09:21 +01:00
Albert Astals Cid
3923c9b855
bzero -> memset
...
Seems bzero is less portable
2019-01-28 19:18:01 +01:00
Albert Astals Cid
52a5959c08
pic: resize header id back if didn't read 4 bytes as expected
2019-01-28 01:56:12 +01:00
Albert Astals Cid
309cddbe83
xcf: bzero buffer if read less data than expected
2019-01-28 01:30:17 +01:00
Albert Astals Cid
47f46d4463
xcf: Only call setDotsPerMeterX/Y if PROP_RESOLUTION is found
...
https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/xcf.txt says
it's not really that important to be there
2019-01-27 13:14:30 +01:00
Albert Astals Cid
bff6142b44
xcf: initialize num_colors
2019-01-27 13:07:37 +01:00
Albert Astals Cid
09abfd8084
xcf: Initialize layer visible property
...
https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/xcf.txt says
When reading old XCF files that lack this property, assume that layers are visible
2019-01-27 13:03:51 +01:00
Albert Astals Cid
964624ba40
xcf: Don't cast int to enum that can't hold that int value
2019-01-27 12:50:19 +01:00
Albert Astals Cid
3dee6f7c47
xcf: Do not overflow int on the setDotsPerMeterX/Y call
2019-01-27 12:29:07 +01:00
Albert Astals Cid
b8cb5e322c
delete copy constructor and assignment operator of some internal classes
...
they are unused, but if anyone would use them things would go wrong, so protect us from it
2019-01-13 22:30:55 +01:00
Albert Astals Cid
8803ae9cd6
GIT_SILENT Upgrade Qt5 version requirement to 5.10.0.
2019-01-07 00:19:26 +01:00
Albert Astals Cid
c3b8030674
GIT_SILENT Upgrade CMake version requirement to 3.5.
2018-12-01 23:56:44 +01:00
Albert Astals Cid
10f201e414
Use gimp to export simple-rgba-gimp-2.8.10.xcf to png again
...
This fixes the xcf test that was failing, i guess at some point someone
run optipng or something over the expected result and that was causing
the test to fail
2018-11-17 12:22:25 +01:00
Albert Astals Cid
1656913fbd
GIT_SILENT Upgrade Qt5 version requirement to 5.9.0.
2018-11-17 11:18:21 +01:00
Albert Astals Cid
55af097749
Don't warn the user/developer about something he can't fix
...
image formats are loaded via qimage/qimagereader and friends, the user/developer does not choose which ones will be used so giving him a warning about sequential devices not being supported is not going to help anyone, only spam their shell/logs.
REVIEW: 123156
Acked by David Edmundson
2015-03-29 23:21:17 +02:00