Lines Matching +full:no +full:- +full:invalid +full:- +full:this
5 * This work is provided "as is"; redistribution and modification
9 * This work is distributed in the hope that it will be useful,
13 * In no event shall the authors or contributors be liable for any
19 * otherwise) arising in any way out of the use of this software, even
26 #include "../thumbnail-verify.c"
41 * Tests with well-formed PNG files. in test_validity()
51 /* Test that validation succeeds with URI and mtime, but no size in the in test_validity()
53 { "valid-no-size.png", 1382429848, 93633, TRUE }, in test_validity()
56 /* Test that an existing file with no tEXt data fails validation. */ in test_validity()
57 { "no-text-data.png", 123 /* invalid */, 26378, FALSE }, in test_validity()
59 { "uri-mismatch.png" /* invalid */, 1382429848, 93654, FALSE }, in test_validity()
61 { "valid.png", 123 /* invalid */, 93654, FALSE }, in test_validity()
64 { "valid.png", 1382429848, 123 /* invalid */, FALSE }, in test_validity()
66 { "mtime-zero.png", 0, 93621, TRUE }, in test_validity()
68 { "valid.png", 9848 /* invalid */, 93654, FALSE }, in test_validity()
71 * Tests with PNG files which have malicious or badly-formed headers. in test_validity()
77 { "bad-header.png", 1382429848, 93654, FALSE }, in test_validity()
79 { "header-only.png", 1382429848, 8, FALSE }, in test_validity()
81 { "header-and-chunk-size.png", 1382429848, 20, FALSE }, in test_validity()
83 { "huge-chunk-size.png", 1382429848, 93654, FALSE }, in test_validity()
85 { "empty-key.png", 1382429848, 93654, FALSE }, in test_validity()
86 /* Check that an over-long value fails (even if nul-terminated). */ in test_validity()
87 { "overlong-value.png", 1382429848, 93660, FALSE }, in test_validity()
119 g_test_add_func ("/png-thumbs/validity", test_validity); in main()