| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=778584
|
|
|
|
|
|
| |
Provided by Ariel Zelivansky <ariel.zelivans@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=779012
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=786306
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785973
|
|
|
|
|
|
|
|
|
|
|
| |
The pixbuf-area-updated and pixbuf-randomly-modified tests are
particularly taxing on the CPU, and though modern desktop machines
shouldn't have a problem dealing with those under 30 seconds, tests
are run in parallel, and busy build machines might fail those tests
because of timeouts.
Bump the timeouts to 300 seconds for those long tests to avoid test
failures.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=787050
|
|
|
|
| |
This is an interactive test program, not an automated one.
|
|
|
|
|
|
|
| |
When the test fails, let's first give it the chance to print the error
message in order to help debugging failures.
https://bugzilla.gnome.org/show_bug.cgi?id=786259
|
|
|
|
|
|
| |
Ensure variables are declared at the top of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=785767
|
|
|
|
|
|
|
|
|
| |
sys/time.h is not a header that is provided by all compilers that we
support, so we need to check for it and include it conditionally so that
things will build normally, especially as Meson builds will build all
the test programs as well.
https://bugzilla.gnome.org/show_bug.cgi?id=785767
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785964
|
|
|
|
| |
This makes it easier to find them and reference them.
|
|
|
|
|
|
|
|
|
|
|
| |
This could happen if something in the test fails, so this allows early
diagnosis of problems. It also hints to Coverity that the loops which
follow can’t run (almost) infinitely due to the loop bounds being
inverted.
Coverity IDs: 1391987, 1399712
https://bugzilla.gnome.org/show_bug.cgi?id=778943
|
|
|
|
|
| |
We want to be able to run the gdk-pixbuf tests after installing them in
a known system location, especially when running CI.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Meson is a better build system than Autotools that has gotten traction
in the GNOME community.
The build is pretty much equivalent between Autotools and Meson, but at
this point it needs further testing to verify complete matching
behaviour.
The GDI-plus loaders are not currently built, as that will require
access to a platform I don't have in order to test them.
Additionally, the API reference is not being generated yet in Meson.
|
|
|
|
| |
Don't leave files behind.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=780667
|
|
|
|
|
|
| |
File created using afl.
https://bugzilla.gnome.org/show_bug.cgi?id=777315
|
|
|
|
|
|
| |
The loader should return an error in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=778204
|
| |
|
|
|
|
|
|
|
| |
Originally from the JPEG conformance tests:
http://people.sc.fsu.edu/~jburkardt/data/jpg/jpg.html
https://bugzilla.gnome.org/show_bug.cgi?id=785171
|
|
|
|
|
|
| |
The sanity checks for image dimensions have since been tightened in
commit 4154d4f and we should not be able to open this huge image anymore
as the dimensions exceed what's possible.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=785447
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=776040
|
|
|
|
|
| |
afl created a file which ASan complains about:
io-bmp.c:475:63: runtime error: signed integer overflow: 524672 * 4096 cannot be represented in type 'int'
|
| |
|
|
|
|
|
|
| |
Overflow checks were added in commit 14904cb842.
https://bugzilla.gnome.org/show_bug.cgi?id=784903
|
| |
|
|
|
|
|
|
|
|
|
| |
One with the tiniest of buffers, one with the biggest one possible.
This catches some crashes that weren't caught with the original "1 byte"
buffers test.
This makes it possible to reproduce the crasher in
https://bugzilla.gnome.org/show_bug.cgi?id=784866
|
|
|
|
|
| |
Some of the tests are _very_ memory intensive, so running two of them at
the same time is probably ill-advised.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=143608
|
|
|
|
|
|
|
|
|
| |
Assert that the pixbufs have non-negative dimensions before comparing
them and potentially using one of the dimensions as a loop bound.
Coverity IDs: 1399711, 1399712
https://bugzilla.gnome.org/show_bug.cgi?id=776990
|
|
|
|
|
|
|
|
|
|
| |
The return values from the GdkPixbuf getters are signed, so assign them
to signed variables and then check that the returned values are
non-negative.
Coverity IDs: 1388535, 1388536, 1388537
https://bugzilla.gnome.org/show_bug.cgi?id=777374
|
|
|
|
|
|
|
|
| |
Test the output of scaling functions to see whether
optimisation/simplification to avoid huge memory and CPU usage is
effective and does not regress.
https://bugzilla.gnome.org/show_bug.cgi?id=80925
|
|
|
|
|
|
| |
Those will be used in the 2-step scaler tests.
https://bugzilla.gnome.org/show_bug.cgi?id=80925
|
|
|
|
|
|
|
|
|
|
|
| |
In the unlikely case that the just created pixbuf is invalid, the
returned sizes would be negative. Ensure that those are positive
to avoid possible infinite loops.
Coverity CID 1391987
Coverity CID 1391988
https://bugzilla.gnome.org/show_bug.cgi?id=776945
|
| |
|
|
|
|
|
|
|
|
| |
This time for the GIF animation.
Adapted from Andrey Tsyvarev's original animation test program.
https://bugzilla.gnome.org/show_bug.cgi?id=581484
|
|
|
|
|
|
| |
Adapted from Andrey Tsyvarev's original test program.
https://bugzilla.gnome.org/show_bug.cgi?id=581484
|
|
|
|
|
|
|
|
|
|
| |
As we always create a GdkPixbuf with alpha, even if the original file
doesn't have an alpha channel, or a mask, make sure to set the alpha
pixel value in all cases, if only to have it overridden if there is a
mask present.
This makes it possible to use the reference test without having
differing alpha values.
|
|
|
|
|
|
|
|
|
| |
The debug output was always printing the very first pixel of the line as
both the reference and test data, leading to "useful" output like:
Image data at 1x1 is #B16C42FF, but should be #B16C42FF
Read the reference and test pixel values from the correct offset in the
line to fix this.
|
|
|
|
|
|
| |
It currently errors out with "TGA image was truncated or incomplete".
https://bugzilla.gnome.org/show_bug.cgi?id=575217
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=685543
|
|
|
|
|
| |
Fix incorrect _close()/_get_pixbuf() call order, a possible
g_object_unref() on a NULL pixbuf, and handling of GIF animations.
|
|
|
|
|
|
|
|
|
| |
Ideally, we should only be comparing data that the loader told us it
updated, and this is kind of what we're doing, as long as we don't have
a legitimate image that uses the exact same filler colour. Unlikely
though.
https://bugzilla.gnome.org/show_bug.cgi?id=696331
|
|
|
|
|
|
|
|
| |
This compares a broken file, which might have random data inside the
part of the image that was missing from the file, with our version
which will have a flat colour instead.
https://bugzilla.gnome.org/show_bug.cgi?id=696331
|
|
|
|
|
|
|
|
| |
This makes it easier to create a reference image after a bug has been
fixed. Reverting the fix is enough to show that the reftest fails
without it.
https://bugzilla.gnome.org/show_bug.cgi?id=696331
|
|
|
|
|
|
|
|
|
| |
In case jp2 is supported, add a test to pixbuf-threads for it,
since seems is the place where most of the format tests are performed.
The image used as a test is the one provided by upstream libjasper.
https://bugzilla.gnome.org/show_bug.cgi?id=760474
|
|
|
|
|
|
|
|
| |
Inconsequential leak fix.
Coverity CID 1388539.
https://bugzilla.gnome.org/show_bug.cgi?id=776020
|
|
|
|
|
|
|
|
|
| |
err could never be set here, meaning we were missing out on some error
checking. The test still passes.
Coverity CID 1388525.
https://bugzilla.gnome.org/show_bug.cgi?id=776020
|