From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: bug-guile@gnu.org
Subject: [PATCH] Fix bug: Init auto var to unrandomize `stack_depth' rv.
Date: Sat, 09 Jan 2010 11:01:42 +0100 [thread overview]
Message-ID: <877hrroaux.fsf@ambire.localdomain> (raw)
Below is a revised patch, with updated ChangeLog entry
(includes "libguile/" prefix).
thi
____________________________________________________________________________
From 666e9de72a7dbaff3ee67a77b3efc981b33c44eb Mon Sep 17 00:00:00 2001
From: Thien-Thi Nguyen <ttn@gnuvola.org>
Date: Sat, 9 Jan 2010 09:12:49 +0100
Subject: [PATCH] Fix bug: Init auto var to unrandomize `stack_depth' rv.
* libguile/stacks.c (stack_depth): Init `n'.
Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org>
---
libguile/stacks.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libguile/stacks.c b/libguile/stacks.c
index 61b7be3..ce16063 100644
--- a/libguile/stacks.c
+++ b/libguile/stacks.c
@@ -66,7 +66,7 @@ static SCM stack_id_with_fp (SCM frame, SCM **fp);
static long
stack_depth (SCM frame, SCM *fp)
{
- long n;
+ long n = 0;
/* count frames, skipping boot frames */
for (; scm_is_true (frame) && SCM_VM_FRAME_FP (frame) > fp;
frame = scm_frame_previous (frame))
--
1.6.3.2
next reply other threads:[~2010-01-09 10:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-09 10:01 Thien-Thi Nguyen [this message]
2010-01-09 22:29 ` [PATCH] Fix bug: Init auto var to unrandomize `stack_depth' rv Andy Wingo
2010-01-10 17:41 ` Thien-Thi Nguyen
2010-01-12 19:35 ` Andy Wingo
2010-01-13 10:02 ` Ludovic Courtès
2010-01-13 13:56 ` Thien-Thi Nguyen
-- strict thread matches above, loose matches on Subject: below --
2010-01-09 8:28 Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hrroaux.fsf@ambire.localdomain \
--to=ttn@gnuvola.org \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).