aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorStefan Monnier2003-07-06 23:13:20 +0000
committerStefan Monnier2003-07-06 23:13:20 +0000
commitbfe1a3f79b809357d4f6babe97a5343523860274 (patch)
tree19d8d473ab7fc124d9e47c5cffc0525beaa86234 /src/alloc.c
parentee79d1aa9c203ea3a3684461c9720d53d815fa08 (diff)
downloademacs-bfe1a3f79b809357d4f6babe97a5343523860274.tar.gz
emacs-bfe1a3f79b809357d4f6babe97a5343523860274.zip
(live_float_p): Check that p is not past the `floats' array,
now that `floats' is not the last element of the struct any more.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 92fd44dcdac..169d292c1b3 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3468,6 +3468,7 @@ live_float_p (m, p)
3468 /* P must point to the start of a Lisp_Float and not be 3468 /* P must point to the start of a Lisp_Float and not be
3469 one of the unused cells in the current float block. */ 3469 one of the unused cells in the current float block. */
3470 return (offset >= 0 3470 return (offset >= 0
3471 && offset < (FLOAT_BLOCK_SIZE * sizeof b->floats[0])
3471 && offset % sizeof b->floats[0] == 0 3472 && offset % sizeof b->floats[0] == 0
3472 && (b != float_block 3473 && (b != float_block
3473 || offset / sizeof b->floats[0] < float_block_index)); 3474 || offset / sizeof b->floats[0] < float_block_index));