Lines Matching refs:XtRealloc
419 /* Make sure XtRealloc() works for a non-zero amount of memory */
428 p = XtRealloc(NULL, 814);
441 p3 = XtRealloc(p, 7314);
456 /* Make sure XtRealloc(0) returns a valid pointer as expected */
463 p = XtRealloc(NULL, 0);
466 p2 = XtRealloc(p, 0);
485 p = XtRealloc(NULL, size);
490 p2 = XtRealloc(p, ALLOC_LIMIT + 1);
506 /* Make sure XtRealloc catches integer overflow if possible, by requesting
510 * Testing integer overflow cases is limited by the fact that XtRealloc
525 p = XtRealloc(NULL, size);
530 p2 = XtRealloc(p, SIZE_MAX);
542 p2 = XtRealloc(p, SIZE_MAX - 1);
554 p2 = XtRealloc(p, SIZE_MAX - 8);
764 g_test_add_func("/Alloc/XtRealloc/normal", test_XtRealloc_normal);
765 g_test_add_func("/Alloc/XtRealloc/zero", test_XtRealloc_zero);
766 g_test_add_func("/Alloc/XtRealloc/oversize", test_XtRealloc_oversize);
767 g_test_add_func("/Alloc/XtRealloc/overflow", test_XtRealloc_overflow);