From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: valid_pointer_p Date: Sat, 12 Aug 2006 00:58:05 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155337199 27721 80.91.229.2 (11 Aug 2006 22:59:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2006 22:59:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 00:59:57 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GBfyi-0002J5-4j for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 00:59:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBfyh-0001Od-ER for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2006 18:59:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBfyW-0001OX-TK for emacs-devel@gnu.org; Fri, 11 Aug 2006 18:59:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBfyU-0001N7-Kz for emacs-devel@gnu.org; Fri, 11 Aug 2006 18:59:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBfyU-0001N4-Iw for emacs-devel@gnu.org; Fri, 11 Aug 2006 18:59:30 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GBg3h-0007Wb-42; Fri, 11 Aug 2006 19:04:53 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 03B2AA5002C; Sat, 12 Aug 2006 00:59:24 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Sun, 06 Aug 2006 06:29:11 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:58303 Archived-At: Eli Zaretskii writes: > Well, I figured that much. But we do know the length of each object, > so we could validate exactly what is needed, right? Just add another > argument to valid_pointer_p that tells it how many bytes to validate. The problem is that you have to deref the pointer to know the length of the object... -- Kim F. Storm http://www.cua.dk