diff options
| author | Paul Eggert | 2011-07-12 18:04:29 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-12 18:04:29 -0700 |
| commit | 47ea7f442f7d85f29b7200ada8755e6ebf5c0819 (patch) | |
| tree | a3df6ad9ff1beb86fd7cb8fe8af9ff0bd433c616 /src/alloc.c | |
| parent | 7152b011c2bae3bfcb7a6d195911ba52e4d112b3 (diff) | |
| download | emacs-47ea7f442f7d85f29b7200ada8755e6ebf5c0819.tar.gz emacs-47ea7f442f7d85f29b7200ada8755e6ebf5c0819.zip | |
* 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) | |||
| 5733 | int ilim = (lim + BITS_PER_INT - 1) / BITS_PER_INT; | 5733 | int ilim = (lim + BITS_PER_INT - 1) / BITS_PER_INT; |
| 5734 | 5734 | ||
| 5735 | /* Scan the mark bits an int at a time. */ | 5735 | /* Scan the mark bits an int at a time. */ |
| 5736 | for (i = 0; i <= ilim; i++) | 5736 | for (i = 0; i < ilim; i++) |
| 5737 | { | 5737 | { |
| 5738 | if (cblk->gcmarkbits[i] == -1) | 5738 | if (cblk->gcmarkbits[i] == -1) |
| 5739 | { | 5739 | { |