From ce496a342712083526d424d965a6fa689b6b09cb Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 25 Aug 2014 19:40:46 -0700 Subject: GC correctness fixes: make sure we pin down objects for which we borrow low level C pointers, while we execute code that can cons memory. * lib.c (list_str): Protect the str argument. (int_str): Likewise. * regex.c (search_regex): protect the haystack string, while using the h pointer to its data, since regex_run can use the derivative-based engine which conses. * stream.c (vformat_str): Protect str argument, since put_char might conceivably cons. (vformat): Protect fmtstr. --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1afb5aa2..28131396 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2014-08-25 Kaz Kylheku + + GC correctness fixes: make sure we pin down objects for which we borrow + low level C pointers, while we execute code that can cons memory. + + * lib.c (list_str): Protect the str argument. + (int_str): Likewise. + + * regex.c (search_regex): protect the haystack string, + while using the h pointer to its data, since regex_run + can use the derivative-based engine which conses. + + * stream.c (vformat_str): Protect str argument, since + put_char might conceivably cons. + (vformat): Protect fmtstr. + 2014-08-14 Kaz Kylheku Version 96. -- cgit v1.2.3