From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#9397: lib-src integer and memory overflow issues Date: Mon, 29 Aug 2011 10:27:41 -0700 Organization: UCLA Computer Science Department Message-ID: <4E5BCC0D.9080504@cs.ucla.edu> References: <4E5ADAF3.1070301@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1314638891 9624 80.91.229.12 (29 Aug 2011 17:28:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2011 17:28:11 +0000 (UTC) Cc: 9397@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 29 19:28:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qy5d0-0001An-Ac for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Aug 2011 19:28:06 +0200 Original-Received: from localhost ([::1]:47083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy5cz-000549-S0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Aug 2011 13:28:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy5cx-00053t-4x for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2011 13:28:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qy5cu-00089M-Oa for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2011 13:28:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy5cu-00089C-Hf for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2011 13:28:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qy5fq-0001IT-Li; Mon, 29 Aug 2011 13:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Aug 2011 17:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 9397-submit@debbugs.gnu.org id=B9397.13146390544970 (code B ref 9397); Mon, 29 Aug 2011 17:31:02 +0000 Original-Received: (at 9397) by debbugs.gnu.org; 29 Aug 2011 17:30:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qy5fh-0001I7-Fz for submit@debbugs.gnu.org; Mon, 29 Aug 2011 13:30:53 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qy5fe-0001Hz-M6 for 9397@debbugs.gnu.org; Mon, 29 Aug 2011 13:30:51 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1B9E439E80D2; Mon, 29 Aug 2011 10:27:47 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UmrhwABZSwax; Mon, 29 Aug 2011 10:27:46 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id AE38239E80DA; Mon, 29 Aug 2011 10:27:46 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20) Gecko/20110805 Thunderbird/3.1.12 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 29 Aug 2011 13:31:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50405 Archived-At: On 08/29/11 08:59, Stefan Monnier wrote: >> Here's an example bug fixed by the patch: "ctags -u -o FOO *.c" >> crashes on Fedora 14 x86-64 if the file name FOO is longer than 8192 >> bytes. > > At least on my GNU/Linux system, "grep PATH.\*MAX /usr/include/**/*.h" > seems to suggest that file names longer than 4096 are not supported ;-) Yes, point taken. However, ctags cannot assume that BUFSIZ is greater than PATH_MAX on all systems, as that assumption is not true everywhere. And even on your GNU/Linux system, ctags should not dump core merely because FOO's name is so long that FOO can't be opened.