Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 67722 invoked from network); 4 Aug 2005 20:33:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2005 20:33:55 -0000 Received: (qmail 91198 invoked by uid 500); 4 Aug 2005 20:33:53 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 91150 invoked by uid 500); 4 Aug 2005 20:33:52 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 91133 invoked by uid 99); 4 Aug 2005 20:33:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 13:33:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [148.87.122.33] (HELO rgminet04.oracle.com) (148.87.122.33) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 13:33:42 -0700 Received: from rgminet04.oracle.com (localhost [127.0.0.1]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j74KYWR0013807 for ; Thu, 4 Aug 2005 14:34:32 -0600 Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j74KYVP5013785 for ; Thu, 4 Aug 2005 14:34:31 -0600 Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j74KXuX1004064 for ; Thu, 4 Aug 2005 14:33:56 -0600 Received: from [138.1.35.250] (dhcp-portland-pacwest-east-138-1-35-250.us.oracle.com [138.1.35.250]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j74KXtWW004053 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 4 Aug 2005 14:33:56 -0600 Message-ID: <42F27BAB.4010501@oracle.com> Date: Thu, 04 Aug 2005 13:33:47 -0700 From: Keith Kelleman User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@apr.apache.org Subject: bug in apr_rmm_realloc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Possible bug in apr_rmm_realloc. When calculating the value of blk, it looks like it should be: blk = (rmm_block_t*)((char*)rmm->base + old - RMM_BLOCK_SIZE); instead of blk = (rmm_block_t*)((char*)rmm->base + old); otherwise blk is pointing at the caller's data. Keith