File: trap-crasher.c

package info (click to toggle)
pixman 0.44.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,496 kB
  • sloc: ansic: 53,617; asm: 12,439; perl: 143; makefile: 17
file content (42 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <stdlib.h>
#include "utils.h"

int
main()
{
    pixman_image_t *dst;
    pixman_trapezoid_t traps[] = {
	{
	    2147483646,
	    2147483647,
	    {
		{ 0, 0 },
		{ 0, 2147483647 }
	    },
	    {
		{ 65536, 0 },
		{ 0, 2147483647 }
	    }
	},
	{
	    32768,
	    - 2147483647,
	    {
		{ 0, 0 },
		{ 0, 2147483647 }
	    },
	    {
		{ 65536, 0 },
		{ 0, 2147483647 }
	    }
	},
    };

    dst = pixman_image_create_bits (PIXMAN_a8, 1, 1, NULL, -1);

    pixman_add_trapezoids (dst, 0, 0, ARRAY_LENGTH (traps), traps);

    pixman_image_unref (dst);

    return (0);
}