test: Add radial-invalid test program
authorSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 24 Apr 2014 00:07:37 +0000 (20:07 -0400)
committerSøren Sandmann <ssp@redhat.com>
Thu, 15 May 2014 17:29:38 +0000 (13:29 -0400)
commitf5f5dbbbc668a3a90c6cfc79bbd2422805db31e7
treeaac9a5c273f3483042b2a3bf210e165215f3f19e
parent91f32ce961bc85f98b3372b95681ad8918d24b18
test: Add radial-invalid test program

This program demonstrates a bug in gradient walker, where some integer
overflows cause colors outside the range [0, 255] to be generated,
which in turns cause 'invalid' floating point exceptions when those
colors are converted to uint8_t.

The bug was first reported by Owen Taylor on the #cairo IRC channel.
test/Makefile.sources
test/radial-invalid.c [new file with mode: 0644]
test/utils.c
test/utils.h