From: Chris Hanson Date: Mon, 27 Jun 2005 06:12:45 +0000 (+0000) Subject: Fix SIGSEGV generated by M-x isearch-forward-regexp when input was X-Git-Tag: 20090517-FFI~1266 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=6b446d5adb07268f6981e7a7ca96e63d8ccebde4;p=mit-scheme.git Fix SIGSEGV generated by M-x isearch-forward-regexp when input was "[^". --- diff --git a/v7/src/runtime/rgxcmp.scm b/v7/src/runtime/rgxcmp.scm index 75b01ebd2..7cb596b78 100644 --- a/v7/src/runtime/rgxcmp.scm +++ b/v7/src/runtime/rgxcmp.scm @@ -1,8 +1,9 @@ #| -*-Scheme-*- -$Id: rgxcmp.scm,v 1.124 2003/02/14 18:28:33 cph Exp $ +$Id: rgxcmp.scm,v 1.125 2005/06/27 06:12:45 cph Exp $ -Copyright 1986, 1989-2002 Massachusetts Institute of Technology +Copyright 1987,1989,1990,1991,1995,1997 Massachusetts Institute of Technology +Copyright 1999,2001,2002,2005 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -674,6 +675,8 @@ USA. (and (input-match? (input-peek) #\^) (begin (input-discard!) #t))) (charset (make-string 32 (ascii->char 0)))) + (if (input-end?) + (premature-end)) (let loop ((chars (if (input-match? (input-peek) #\])