From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: re-search-forward/backward causes a segmentation fault Date: Mon, 13 Oct 2003 14:21:33 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310082328.IAA16073@etlken.m17n.org> <200310130211.LAA22568@etlken.m17n.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066070059 4824 80.91.224.253 (13 Oct 2003 18:34:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2003 18:34:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Oct 13 20:34:17 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A97WL-00061B-00 for ; Mon, 13 Oct 2003 20:34:17 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A97WK-0007Ds-00 for ; Mon, 13 Oct 2003 20:34:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A97Qz-0001gp-Mi for emacs-devel@quimby.gnus.org; Mon, 13 Oct 2003 14:28:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A97OZ-0000rO-PF for emacs-devel@gnu.org; Mon, 13 Oct 2003 14:26:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A97NF-0000Fv-62 for emacs-devel@gnu.org; Mon, 13 Oct 2003 14:25:25 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A97N6-0000Eg-S6 for emacs-devel@gnu.org; Mon, 13 Oct 2003 14:24:44 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1A97K1-0008PQ-68; Mon, 13 Oct 2003 14:21:33 -0400 Original-To: Kenichi Handa In-reply-to: <200310130211.LAA22568@etlken.m17n.org> (message from Kenichi Handa on Mon, 13 Oct 2003 11:11:43 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17062 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17062 I see. So, regex_compile should check the size of offset before storing it in a buffer for compiled code. But, doesn't it mean that if regex_compile does that check, we don't have to have the limit of 2^16 as below? regex_compile is the place that checks, and I am going to cut the value of MAX_BUF_SIZE by 50%.