Commit 47ea7f44 authored by Paul Eggert's avatar Paul Eggert
Browse files

* alloc.c (gc_sweep): Don't read past end of array.

In theory, the old code could also have corrupted Emacs internals,
though it'd be very unlikely.
parent 7152b011
2011-07-13 Paul Eggert <eggert@cs.ucla.edu>
* alloc.c (gc_sweep): Don't read past end of array.
In theory, the old code could also have corrupted Emacs internals,
though it'd be very unlikely.
2011-07-12 Andreas Schwab <schwab@linux-m68k.org>
* character.c (Fcharacterp): Don't advertise optional ignored
......
......@@ -5733,7 +5733,7 @@ gc_sweep (void)
int ilim = (lim + BITS_PER_INT - 1) / BITS_PER_INT;
/* Scan the mark bits an int at a time. */
for (i = 0; i <= ilim; i++)
for (i = 0; i < ilim; i++)
{
if (cblk->gcmarkbits[i] == -1)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment