summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/test-loaders.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-02-12 23:28:05 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-02-12 23:28:05 +0000
commita9a06ee44e440522eaa56d4f4f300ffe91a5083d (patch)
treeab615c03d69aa578d07bc20dbf64c910018309fb /gdk-pixbuf/test-loaders.c
parent67051d64f4f335e8a578602882e215a895614ea5 (diff)
downloadgtk+-a9a06ee44e440522eaa56d4f4f300ffe91a5083d.tar.gz
Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().
* test-images.h (tiff1_test_3), test-loaders.c (main): Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory(). * io-ico.c (DecodeHeader): Check that pixbuf could be allocated. * test-images.h (ico_test_2), test-loaders.c (main): Test the previous change. * io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Don't write beyond the end of buffer if width % 8 != 0. * io-tga.c (try_preload): Enforce that ctx->hdr->type is one of the supported types, otherwise parse_data_for_row () will not make any progress, leading to an infinite loop.
Diffstat (limited to 'gdk-pixbuf/test-loaders.c')
-rw-r--r--gdk-pixbuf/test-loaders.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdk-pixbuf/test-loaders.c b/gdk-pixbuf/test-loaders.c
index 49066362a0..3874257966 100644
--- a/gdk-pixbuf/test-loaders.c
+++ b/gdk-pixbuf/test-loaders.c
@@ -403,22 +403,24 @@ main (int argc, char **argv)
TEST (valid_ico_test, TRUE);
TEST (ico_test_1, FALSE);
-
+ TEST (ico_test_2, FALSE);
+
TEST (valid_jpeg_test, TRUE);
TEST (valid_tiff1_test, TRUE);
TEST (tiff1_test_1, FALSE);
TEST (tiff1_test_2, FALSE);
+#if 0
+ TEST (tiff1_test_3, FALSE); /* Segfault in TIFFReadDirectory with libtiff 3.5.5, fixed in 3.5.7 */
+#endif
TEST (valid_tga_test, TRUE);
TEST (tga_test_1, FALSE);
TEST (xpm_test_1, FALSE);
-#if 0
TEST (wbmp_test_1, FALSE);
TEST (wbmp_test_2, FALSE);
-#endif
TEST_RANDOM (GIF_HEADER, 150, FALSE);
TEST_RANDOM (PNG_HEADER, 1100, FALSE);
@@ -432,12 +434,10 @@ main (int argc, char **argv)
TEST_RANDOMLY_MODIFIED (valid_gif_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_png_test, FALSE);
TEST_RANDOMLY_MODIFIED (valid_tga_test, FALSE);
- TEST_RANDOMLY_MODIFIED (valid_jpeg_test, FALSE); /* The jpeg loader does not break */
- TEST_RANDOMLY_MODIFIED (valid_ico_test, FALSE); /* The ico loader does not seem to
- * break, but the image tend to
- * mutate into a wbmp image, and
- * the wbmp loader is broken
- */
+ TEST_RANDOMLY_MODIFIED (valid_jpeg_test, FALSE);
+ TEST_RANDOMLY_MODIFIED (valid_ico_test, FALSE);
+
+
/* memory tests */
/* How do the loaders behave when memory is low?