diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-12 18:04:29 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-12 18:04:29 -0700 |
commit | 47ea7f442f7d85f29b7200ada8755e6ebf5c0819 (patch) | |
tree | a3df6ad9ff1beb86fd7cb8fe8af9ff0bd433c616 /src/alloc.c | |
parent | 7152b011c2bae3bfcb7a6d195911ba52e4d112b3 (diff) | |
download | emacs-47ea7f442f7d85f29b7200ada8755e6ebf5c0819.tar.gz |
* 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.
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 6ba080c0b4c..44f935c243d 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -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) { |