|
From: | Chong Yidong |
Subject: | Re: PATCH: fix for memory corruption and eventual crash in print.c |
Date: | Mon, 21 Jul 2008 01:06:45 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
"Ami Fischman" <address@hidden> writes: > src/print.c:print_object() has this code: > > 1570 if (NILP (Vprint_circle) && NILP (Vprint_gensym)) > [...] > 1581 being_printed[print_depth] = obj; > [...] > 1611 print_depth++; > 1612 > 1613 /* See similar code in print_preprocess. */ > 1614 if (print_depth > PRINT_CIRCLE) > 1615 error ("Apparently circular structure being printed"); > > Note that being_printed[print_depth] is assigned to /before/ print_depth is > checked for exceeding PRINT_CIRCLE (the declared size of being_printed). > > Patch attached. Thanks, I've checked in the fix (to both the trunk and the branch).
[Prev in Thread] | Current Thread | [Next in Thread] |