From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29410 invoked by alias); 16 May 2005 20:28:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29039 invoked from network); 16 May 2005 20:28:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 16 May 2005 20:28:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4GKSHsT009920 for ; Mon, 16 May 2005 16:28:17 -0400 Received: from zenia.home.redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4GKSFO10126; Mon, 16 May 2005 16:28:16 -0400 To: Daniel Jacobowitz Cc: "Cuthbertson, Reva D." , gdb@sources.redhat.com Subject: Re: Is it possible to overflow baton->size in dwarf_mark_symbols_computed() in dwarf2read.c? References: <20050513153945.GA9246@nevyn.them.org> From: Jim Blandy Date: Mon, 16 May 2005 20:28:00 -0000 In-Reply-To: <20050513153945.GA9246@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-05/txt/msg00164.txt.bz2 Daniel Jacobowitz writes: > No. It should saturate instead; it only needs to be longer than any > supported location list/expression, and 64k is entirely reasonable for > that. Int would waste a lot of memory. Both those structures are twelve bytes long anyway. Their 'size' fields are followed by two bytes of padding on IA-32.