From 296094c3dde63e458242a8537d1d3c0ca299dd56 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 3 Jul 2012 14:21:01 +0400 Subject: [PATCH] * alloc.c (check_string_bytes): If GC_CHECK_STRING_BYTES is enabled, avoid dereferencing NULL current_sblock if running undumped. --- src/ChangeLog | 6 ++++++ src/alloc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6eb1a07faf2..d0dfa1375f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-07-03 Dmitry Antipov + + * alloc.c (check_string_bytes): If GC_CHECK_STRING_BYTES + is enabled, avoid dereferencing NULL current_sblock if + running undumped. + 2012-07-03 Dmitry Antipov Cleanup basic buffer management. diff --git a/src/alloc.c b/src/alloc.c index b329f89d15b..3306bc4107b 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1872,7 +1872,7 @@ check_string_bytes (int all_p) for (b = oldest_sblock; b; b = b->next) check_sblock (b); } - else + else if (current_sblock) check_sblock (current_sblock); } -- 2.39.2