diff options
author | Kevin Ryde <user42@zip.com.au> | 2004-04-05 22:46:29 +0000 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2004-04-05 22:46:29 +0000 |
commit | 2e1fc2e8e36c4a67a3eac7cc467e9cb9c5f7fcbe (patch) | |
tree | d30ce246cdd48dbb466a543b445e48f6f6a50593 /libguile/scmsigs.c | |
parent | eac8e0ef86bd2030b103ae2f0ee7ae6e53725663 (diff) | |
download | guile-2e1fc2e8e36c4a67a3eac7cc467e9cb9c5f7fcbe.tar.gz |
(scm_sigaction_for_thread): Correction to signum range
test, avoids SCM_VECTOR_REF outside bounds of signal_handlers on
calling (sigaction NSIG).
Diffstat (limited to 'libguile/scmsigs.c')
-rw-r--r-- | libguile/scmsigs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c index a4a21c53f..defd07e0b 100644 --- a/libguile/scmsigs.c +++ b/libguile/scmsigs.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2004 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -299,7 +299,7 @@ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0, SCM old_handler; SCM_VALIDATE_INUM_COPY (1, signum, csig); - if (csig < 0 || csig > NSIG) + if (csig < 0 || csig >= NSIG) SCM_OUT_OF_RANGE (1, signum); #if defined(HAVE_SIGACTION) #if defined(SA_RESTART) && defined(HAVE_RESTARTABLE_SYSCALLS) |