| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
bmp headers contain separate fields for the number of colors,
and the bit depth. Catch the impossible n_colors > 1 << depth
and error early, before it causes a out-of-bounds memory
access when decoding the colormap.
https://bugzilla.gnome.org/show_bug.cgi?id=758991
|
|
|
|
|
|
|
|
| |
Erroring out early if we find a bogus image depth is
the right thing to do, and avoids possible memory
overruns later on.
https://bugzilla.gnome.org/show_bug.cgi?id=747605
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This partially reverts 9bd5863.
As we now ensure that items using GResources and GConstructors are always
referenced so that the linker does not optimize them out in a default
Release build, we no longer need to enforce the use of /LTCG, so
/LTCG:incremental will work as well.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
MSVC 2015 changed its default link-time code generation setting to
/LTCG:incremental, which causes problems if /opt:noref is to be used,
meaning that some code will be optimized out by the linker.
Avoid this situtation here by enforcing the use of /LTCG for MSVC 2010+
builds.
Also rearrange some of the project files a bit for consistency.
|
|
|
|
|
|
| |
The gdk-pixbuf-buffer-queue.c is built when the TGA loader is built as
a loader module, but is not built when the TGA loader is built directly
into the main GDK-Pixbuf library. Fix that, to avoid linker errors.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Previously, we would silently ignore the case where the image didn't
have enough pixels.
That is not a good idea, in particular when we haven't even read a
header.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
In particular, add the canonical image/vnd.microsoft.icon
|
| |
|
|
|
|
|
| |
... 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.
|
| |
|
|
|
|
|
| |
This way, the images are neatly transparent/black instead of random
colors.
|