| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=766890
|
|
|
|
|
|
|
|
|
| |
The scaler's testsuite has no checks for correctness of the scaled image.
This add some rudimentary ones, scaling a checkerboard to 1/2 size and
seeing if it's all gray and checking the "dest" and "offset" parameters.
https://bugzilla.gnome.org/show_bug.cgi?id=80925
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=776105
|
|
|
|
|
|
|
| |
Those ones should succeed, and we test both uncompressed and
RLE-compressed data.
https://bugzilla.gnome.org/show_bug.cgi?id=775693
|
|
|
|
|
|
|
|
|
|
| |
In 3724a739 we added a test for the deserializing code, but we shouldn't
be free'ing the contents straight away, as gdk_pixdata_deserialize()
does not copy the data, but expects it to stay around until we've copied
the data to the pixbuf (with gdk_pixbuf_from_pixdata() and copy_pixels
== TRUE), or we're done with the pixbuf.
https://bugzilla.gnome.org/show_bug.cgi?id=775693
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775693
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775648
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775242
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775232
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775693
|
|
|
|
|
|
|
|
|
|
|
| |
This won't stop pixdata-encoded data from being mmap'ed directly
from the binary when using GResource, but will stop external files from
being loaded, and thus block a possible attack vector.
This also adjusts the new pixdata tests to make sure that external
pixdata files fail to load.
https://bugzilla.gnome.org/show_bug.cgi?id=776004
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=776004
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775218
|
|
|
|
|
|
| |
Otherwise the /pixbuf/composite2 test will segfault
https://bugzilla.gnome.org/show_bug.cgi?id=771026
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Instead of risking crashes or OOM, return an error if
we detect integer overflow.
The commit also includes a test image that triggers
this overflow when used with pixbuf-read.
https://bugzilla.gnome.org/show_bug.cgi?id=768738
|
|
|
|
|
|
| |
Exercising copy_options() and remove_option().
https://bugzilla.gnome.org/show_bug.cgi?id=768043
|
|
|
|
|
|
|
|
|
|
| |
When the ico header turn out to be bad, always set an
error when we fail. Otherwise, applications will get
confused.
This commit also adds an example image with a bad ico header.
https://bugzilla.gnome.org/show_bug.cgi?id=768484
|
|
|
|
|
|
|
|
|
|
| |
Return an error if n_colors * samples overflows.
This commit also adds a reproducer that will cause
pixbuf-randomly-modified to crash in the absence of
the patch.
https://bugzilla.gnome.org/show_bug.cgi?id=768688
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes an issue where pixops_composite_nearest_noscale () had
different behavior than pixops_composite_nearest () for pixels in the
destination that are not a part of the transformed source image. Per the
documentation, the pixels at the edges of the source image should be
replicated to infinity.
Added a test to tests/pixbuf-composite.c
https://bugzilla.gnome.org/show_bug.cgi?id=766842
|
|
|
|
|
|
|
| |
These tests check for memory overflow in various internal
allocations, and require giant amounts of address space.
In continuous' vm, they trigger the oom killer. Since this
is undesirable, only run the tests in slow mode (ie with -m slow).
|
|
|
|
|
|
| |
The test was segfaulting here, because of a non-matching
signal handler signature. A bit of a mystery how this could
succeed on Benjamins system.
|
|
|
|
|
| |
Use the *.* glob instead of * to bypass directories and only
install files.
|
|
|
|
|
| |
It doesn't make sense to use file_size / 4 because once a file is
broken, it's broken. Breaking it even more is not very useful.
|
|
|
|
| |
These images are buggy, but we load them. So add them as reftests.
|
|
|
|
| |
They exploit a bunch of bugs I encountered while redoing the TGA loader.
|
|
|
|
|
|
|
|
| |
pixbuf-fail goes into test-images/fail and loads all the images in
there, checking that a proper error happens during loading.
This is useful for invalid images that cause crashes: Put them in there
after they are fixed.
|
|
|
|
| |
I have no idea if they *should* load, but they do.
|
|
|
|
|
| |
Gimp and gdk-pixbuf load this image, so don't pretend in the testsuite
that we can;t load it.
|
|
|
|
|
| |
... instead of g_random_int_range() so that the GTest seed machinery
actually works.
|
| |
|
| |
|
|
|
|
|
| |
When using gio and threads, 64bit code gets unhappy about a limited
address space.
|
|
|
|
|
| |
Use that to make pixbuf-reftest accept arguments on the command line to
specify a file to test.
|
|
|
|
| |
I want to use it as a reftesting tool.
|
|
|
|
|
| |
The typo was inconsequential, because the variable was auto-expanded to
its current value anyway.
|
|
|
|
|
|
|
|
|
| |
Instead of using
strstr (filename, modulename);
use
has_suffix (filenname, extension_supported_by_module);
That way, files can be named .jpg and .jpeg without things going wrong.
|
|
|
|
|
| |
Make sure they have a sane file extension so it's easy for tools to
identify them from their filename.
|
|
|
|
| |
The wbmp and ras loaders were dropped, no need to keep the filrs.
|
|
|
|
| |
... and use it to not add reference images.
|
|
|
|
| |
Compare image with a reference PNG.
|
|
|
|
| |
When something differs, display the actual values
|
|
|
|
|
| |
Instead of p1 and p2, name the arguments "test" and "ref". This makes
the arguments more meaningful and easier to distinguish.
|
| |
|
|
|
|
|
|
| |
Make test-images/ a directory only containing subdirectories for ease of
maintenance.
Move all images from that directory to test-images/randomly-modified.
|
|
|
|
|
| |
We can use the new helper function here as well, instead
of manually listing all the tga test images.
|
|
|
|
|
|
|
| |
Use the new helper function. This fixes the problem
that the test previously had with subdirectories in
test-images. The helper function will recurse into
any subdirectory it finds.
|
|
|
|
|
| |
This helper function recursively runs over a directory
and adds a test function for each file in the tree.
|
|
|
|
|
|
| |
Add a bunch of TGA files and a test that loads the image byte by byte
and copies only the parts given via the area-updated signal of the
loader and then checks the resulting image is correct.
|