fix list validation bug in @abort
authorAndy Wingo <wingo@pobox.com>
Thu, 28 Jul 2011 16:17:45 +0000 (18:17 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 28 Jul 2011 16:17:45 +0000 (18:17 +0200)
* libguile/control.c (scm_at_abort): Fix to ensure that we store the
  return of scm_ilength in a signed integer, even if later we copy it to
  an unsigned.  See
  http://article.gmane.org/gmane.lisp.guile.devel/12685.

libguile/control.c

index 9121d17..661de8f 100644 (file)
@@ -248,7 +248,8 @@ SCM_DEFINE (scm_at_abort, "@abort", 2, 0, 0, (SCM tag, SCM args),
 #define FUNC_NAME s_scm_at_abort
 {
   SCM *argv;
-  size_t i, n;
+  size_t i;
+  long n;
 
   SCM_VALIDATE_LIST_COPYLEN (SCM_ARG2, args, n);
   argv = alloca (sizeof (SCM)*n);