Edit

IABSD.fr/xenocara/lib/pixman/test/trap-crasher.c

Branch :

  • Show log

    Commit

  • Author : matthieu
    Date : 2025-08-12 16:39:28
    Hash : 81405b23
    Message : Update to pixman 0.46.4. tested in a bulk ports build and ok jca@ runs of the tests on differents by gkoeler@, jca@ and others.

  • lib/pixman/test/trap-crasher.c
  • #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);
    }