2003-08-19 Ulrich Drepper <drepper@redhat.com>
+ * stdio-common/test-vfprintf.c (main): Don't write temporary file
+ into source directory.
+
* malloc/malloc.c (_int_free): Add cheap test for some invalid
block sizes.
allocator never wrapps around at the end of the address space.
Therefore we can exclude some size values which might appear
here by accident or by "design" from some intruder. */
- if ((uintptr_t) p > (uintptr_t) -size)
- return;
+ if (__builtin_expect ((uintptr_t) p > (uintptr_t) -size, 0))
+ {
+ if (check_action & 1)
+ fprintf (stderr, "free(): invalid pointer %p!\n", mem);
+ if (check_action & 2)
+ abort ();
+ return;
+ }
check_inuse_chunk(av, p);
/* Tests of *printf for very large strings.
- Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2000.
int
main (void)
{
- char buf[20];
+ char buf[25];
size_t i;
int res = 0;
int fd;
mtrace ();
- strcpy (buf, "test-vfprintfXXXXXX");
+ strcpy (buf, "/tmp/test-vfprintfXXXXXX");
fd = mkstemp (buf);
if (fd == -1)
{