From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4869 invoked by alias); 24 Nov 2014 09:28:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 4816 invoked by uid 89); 24 Nov 2014 09:28:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 24 Nov 2014 09:28:57 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id E275111669E; Mon, 24 Nov 2014 04:28:55 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id te01OdmqpSTf; Mon, 24 Nov 2014 04:28:55 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 74F9E11666C; Mon, 24 Nov 2014 04:28:55 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 64A2B40F79; Mon, 24 Nov 2014 13:28:55 +0400 (RET) Date: Mon, 24 Nov 2014 09:28:00 -0000 From: Joel Brobecker To: bug-hurd@gnu.org, thomas@codesourcery.com, gdb-patches@sourceware.org Subject: Re: [PATCHv2,Hurd] Fix deallocation after proc_getprocinfo call Message-ID: <20141124092855.GJ5774@adacore.com> References: <20141102152537.GG2991@type.youpi.perso.aquilenet.fr> <20141123074452.GC7136@adacore.com> <20141123151946.GF4576@type.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141123151946.GF4576@type.youpi.perso.aquilenet.fr> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-11/txt/msg00600.txt.bz2 > 2014-10-02 Samuel Thibault > > * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of > elements pi_len by the size of the elements before calling > vm_deallocate. > (inf_validate_task_sc): Likewise, and properly deallocate the > noise array. Thank you, Samuel. The patch has now been pushed. -- Joel