From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r107337: Protect fileio.c primitives against invalid file handler return values. Date: Sun, 19 Feb 2012 22:39:47 -0500 Message-ID: References: <8739a645zp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329709202 12697 80.91.229.3 (20 Feb 2012 03:40:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2012 03:40:02 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 20 04:40:01 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RzK6X-00079g-O0 for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2012 04:39:59 +0100 Original-Received: from localhost ([::1]:35771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzK6W-0002S4-E0 for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2012 22:39:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzK6T-0002Rz-R5 for emacs-devel@gnu.org; Sun, 19 Feb 2012 22:39:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzK6S-0005pG-Mn for emacs-devel@gnu.org; Sun, 19 Feb 2012 22:39:53 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:3846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzK6R-0005ft-El; Sun, 19 Feb 2012 22:39:51 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGK/QU9Ld/XJ/2dsb2JhbABEsiiBCIFzAQEEAVYjBQsLDiYHCxQYDSSIE7kRjAhRCQYBAgECAoNiBgUFBQMBAgyDTwSITpsZhFs X-IronPort-AV: E=Sophos;i="4.73,448,1325480400"; d="scan'208";a="163787534" Original-Received: from 75-119-245-201.dsl.teksavvy.com (HELO ceviche.home) ([75.119.245.201]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Feb 2012 22:39:49 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id E3BED66119; Sun, 19 Feb 2012 22:39:47 -0500 (EST) In-Reply-To: <8739a645zp.fsf@gnu.org> (Chong Yidong's message of "Mon, 20 Feb 2012 10:02:18 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148671 Archived-At: > If the handler function returns an object of the wrong type, and that is > not caught, Emacs is liable to crash if that return value is used in C > code. Note that such a crash would denote a bug in the C code (triggered by a bug in the file-handler, of course, but a separate bug nevertheless). Stefan