summaryrefslogtreecommitdiff
path: root/test/blitters-test.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-12-18 08:16:45 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-01-09 05:40:33 -0500
commit4f3fe9c9096b2261217c2d4beb7d5eb8e578ed76 (patch)
treeb7e1e73df3269c16d872d057c902dcdcd74c5955 /test/blitters-test.c
parent3e93bba3b04b42c2ab99d828dae12c18f29bcf7d (diff)
Fix some signed overflow bugs
In the macros for the PDF blend modes, two comp1_t variables are multiplied together and then used as if the result were a comp4_t. When comp1_t is a uint8_t, this is fine because they are promoted to int, and the product of two uint8_ts fits in an int. However, when comp1_t is uint16, the product does not necessarily fit in an int, so casts are necessary. Fix for bug 43906, reported by Siarhei Siamashka.
Diffstat (limited to 'test/blitters-test.c')
-rw-r--r--test/blitters-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/blitters-test.c b/test/blitters-test.c
index 55b6c735..63162e63 100644
--- a/test/blitters-test.c
+++ b/test/blitters-test.c
@@ -424,6 +424,6 @@ main (int argc, const char *argv[])
}
return fuzzer_test_main("blitters", 2000000,
- 0x29137844,
+ 0x3EDA4108,
test_composite, argc, argv);
}