From bfe1a3f79b809357d4f6babe97a5343523860274 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 6 Jul 2003 23:13:20 +0000 Subject: [PATCH] (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. --- src/ChangeLog | 5 +++++ src/alloc.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 5efef007e00..634bc3f9a61 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-07-06 Stefan Monnier + + * alloc.c (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. + 2003-07-06 Jason Rumney * w32term.h (ClipboardSequence_Proc): New type. 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) /* P must point to the start of a Lisp_Float and not be one of the unused cells in the current float block. */ return (offset >= 0 + && offset < (FLOAT_BLOCK_SIZE * sizeof b->floats[0]) && offset % sizeof b->floats[0] == 0 && (b != float_block || offset / sizeof b->floats[0] < float_block_index)); -- 2.11.4.GIT