🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.editor.emacs
Article #3256

Re: SEGV in write_region & search_command

#3256
From: Yoshiyuki Akiba
Date: Fri, 14 Feb 1992 03:49
62 lines
2757 bytes
	$@=)MU!w%-%d%N%s$G$9!#(J

nemacs$@$,(Jwrite_region(),search_command()$@$G(Jsegmentation
fault$@$r5/$3$97o$G<ALd$7$?$H$3$m!"$1$s$A$c$s!w#E#T#L$5$s!"(J
$@$($J$_!w%=%K!<$5$s$h$j%U%)%m!<$r$$$?$@$-$^$7$?!#(J

$@>\$7$/$O!"@h$N5-;v$r;2>H$7$F$$$?$@$/$3$H$K$7$F!"$^(J$@$H$a(J
$@$N%Q%C%A$r%]%9%H$7$^$9!#(J

$@$*$+$2$5$^$G!"$&$A$N(Jnemacs$@$b$*$H$J$7$/$J$C$F$/$l$?$h$&(J
$@$G$9!#$I$&$b$"$j(J$@$,$H$&$4$6$$$^$7$?!#(J

$@!<!<$3$3$+$i(J
diff -c fileio.c~ fileio.c
*** fileio.c~	Fri Oct 11 10:30:05 1991
--- fileio.c	Fri Feb 14 11:15:27 1992
***************
*** 1780,1785 ****
--- 1780,1786 ----
      GCPRO1 (filename);		/* patch by S.Abe */
      code = Ffuncall (6, args);
      UNGCPRO;			/* patch by S.Abe */
+     fn = XSTRING (filename)->data;
      if (XTYPE(code) != Lisp_Int) code = make_number ( NOCONV );
      savep = Qt;
      kanji_fileio_code = bf_cur->kanji_fileio_code;
diff -c search.c~ search.c
*** search.c~	Fri Oct 11 10:30:26 1991
--- search.c	Fri Feb 14 11:12:28 1992
***************
*** 428,433 ****
--- 428,434 ----
      while (FirstCharacter <= np && np <= NumCharacters + 1 && n != 0) {
        np = search_buffer (string, np, lim, direction, RE,
  		      !NULL (bf_cur->case_fold_search) ? downcase_table : 0);
+       if (np <= 0) break;
        if (n > 0) {
  	if (kanji_point(np - XSTRING(string)->size) < 2) n--;
  	else np -= XSTRING(string)->size - 1;
***************
*** 436,442 ****
        }
      }
    }
!   if (kanji_point(np) == 2) np += direction;
  #endif  /* NEMACS */
  
    if (np <= 0)
--- 437,443 ----
        }
      }
    }
!   if (np > 0 && kanji_point(np) == 2) np += direction;
  #endif  /* NEMACS */
  
    if (np <= 0)
$@!<!<$3$3$^$G(J
--
$@%-%d%N%s3t<02q<R(J
$@%3%s%T(J$@%e!<%?1~MQ%7%9%F%`5;=Q3+H/%;%s%?!<(J
$@=)MU4nG7(J(akiba@cbs.canon.co.jp)
Technical Details
Message-ID: <AKIBA.92Feb14124915@scoop.cbs.canon.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ccut!s.u-tokyo!riksun!rknss1!rkna50!nttlab!icot32!canongw!cbsws1!akiba
References: <AKIBA.92Jan30195411@scoop.cbs.canon.co.jp> <HANDA.92Feb3155700@etlhit.etl.go.jp> <ENAMI.92Feb5151005@kitt.sys.ptg.sony.co.jp> <HANDA.92Feb6131520@etlhit.etl.go.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: ff358,463ea0c611c282d
X-Google-Attributes: gidff358,public
X-Google-ArrivalTime: 1992-02-14 16:34:04 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ccut!s.u-tokyo!riksun!rknss1!rkna50!nttlab!icot32!canongw!cbsws1!akiba
From: akiba@cbs.canon.co.jp (Yoshiyuki Akiba)
Newsgroups: fj.editor.emacs
Subject: Re: SEGV in write_region & search_command
Message-ID: <AKIBA.92Feb14124915@scoop.cbs.canon.co.jp>
Date: 14 Feb 92 03:49:15 GMT
References: <AKIBA.92Jan30195411@scoop.cbs.canon.co.jp>
 <HANDA.92Feb3155700@etlhit.etl.go.jp>
 <ENAMI.92Feb5151005@kitt.sys.ptg.sony.co.jp>
 <HANDA.92Feb6131520@etlhit.etl.go.jp>
Sender: news@cbs.canon.co.jp
Distribution: fj
Organization: Computer & Systems Development Center, Canon Inc., Tokyo, JAPAN
Lines: 62
In-reply-to: handa@etlhit.etl.go.jp's message of 6 Feb 92 04:15:20 GMT