+2010-03-24 Ulrich Drepper <drepper@redhat.com>
+
+ [BZ #11389]
+ * bits/time.h: Define CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and
+ CLOCK_MONOTONIC_COARSE.
+ * sysdeps/unix/sysv/linux/clock_getres.c: Handle CLOCK_MONOTONIC_RAW,
+ CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE.
+ * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
+ * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
+
+ 2010-03-25 Andreas Schwab <schwab@redhat.com>
+
+ * sysdeps/posix/cuserid.c: Fix typo.
+
2010-03-16 Chris Demetriou <cgd@google.com>
+ [BZ #11394]
* locale/programs/simple-hash.c: Include inttypes.h.
(hashval_t): Defined to be uint32_t.
* locale/programs/simple_hash.h: Include inttypes.h.
free_perturb (chunk2mem(p), size - SIZE_SZ);
set_fastchunks(av);
-- fb = &fastbin (av, fastbin_index(size));
++ unsigned int idx = fastbin_index(size);
++ fb = &fastbin (av, idx);
#ifdef ATOMIC_FASTBINS
mchunkptr fd;
errstr = "double free or corruption (fasttop)";
goto errout;
}
++ if (old != NULL
++ && __builtin_expect (fastbin_index(chunksize(old)) != idx, 0))
++ {
++ errstr = "invalid fastbin entry (free)";
++ goto errout;
++ }
p->fd = fd = old;
}
while ((old = catomic_compare_and_exchange_val_rel (fb, p, fd)) != fd);
errstr = "double free or corruption (fasttop)";
goto errout;
}
++ if (*fb != NULL
++ && __builtin_expect (fastbin_index(chunksize(*fb)) != idx, 0))
++ {
++ errstr = "invalid fastbin entry (free)";
++ goto errout;
++ }
p->fd = *fb;
*fb = p;
for (i=0; i<100; ++i)
{
++printf("round %li\n", i);
save_state = malloc_get_state ();
if (save_state == NULL)
{
merror ("realloc (i*4) failed.");
free (save_state);
}
++puts("done");
p1 = realloc (p1, 40);
++puts("after realloc");
free (p2);
++puts("after free 1");
p2 = malloc (10);
++puts("after malloc");
if (p2 == NULL)
merror ("malloc (10) failed.");
free (p1);
++puts("after free 2");
return errors != 0;
}