From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Fri, 17 Sep 2010 15:49:07 +0200 Message-ID: References: <87bp805ecr.fsf@gmail.com> <87iq26z97e.fsf@uwakimon.sk.tsukuba.ac.jp> <87y6b0yi8o.fsf@uwakimon.sk.tsukuba.ac.jp> <87sk18bioh.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284731366 12352 80.91.229.12 (17 Sep 2010 13:49:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 13:49:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 17 15:49:22 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OwbJY-0008K0-Jj for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 15:49:22 +0200 Original-Received: from localhost ([127.0.0.1]:49560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwbJX-0006pT-TZ for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 09:49:19 -0400 Original-Received: from [140.186.70.92] (port=35292 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwbJR-0006lw-Np for emacs-devel@gnu.org; Fri, 17 Sep 2010 09:49:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwbJQ-000232-LH for emacs-devel@gnu.org; Fri, 17 Sep 2010 09:49:13 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:45117) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwbJO-00022H-JN; Fri, 17 Sep 2010 09:49:10 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 410071C15592; Fri, 17 Sep 2010 15:49:08 +0200 (CEST) Original-Received: from hase.home (ppp-88-217-113-134.dynamic.mnet-online.de [88.217.113.134]) by mail.mnet-online.de (Postfix) with ESMTP id E09E01C0046B; Fri, 17 Sep 2010 15:49:07 +0200 (CEST) X-Yow: Th' MIND is the Pizza Palace of th' SOUL In-Reply-To: <87sk18bioh.fsf@lola.goethe.zz> (David Kastrup's message of "Fri, 17 Sep 2010 15:31:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130304 Archived-At: David Kastrup writes: > Not really sure about that. > > + looking_at_literally (Lisp_Object string) > + { > + int start_byte = CHAR_TO_BYTE (PT); PT_BYTE > + int end_byte, end = PT + SCHARS (string); > > PT + SCHARS (string) can overflow here. Better check first rather than > later whether ZV - PT < SCHARS (string). > > Yes, I know that most-positive-fixnum <= MAX_INT/2 How do you "know" that? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."