Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60591 invoked by uid 1010); 27 Oct 2004 11:12:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57974 invoked from network); 27 Oct 2004 11:11:50 -0000 Received: from unknown (HELO mproxy.gmail.com) (216.239.56.241) by pb1.pair.com with SMTP; 27 Oct 2004 11:11:50 -0000 Received: by mproxy.gmail.com with SMTP id w67so118970cwb for ; Wed, 27 Oct 2004 04:11:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Z5YqeJe6xXuvkpd3H1jNu+sJMN2A54EOl2EufdKi51XkO3Ow+TRGto1zHwpmNPa6uSyaWlhJUzLgiRdYfdLFDeWbMVCd2ajoBnKRwOixEWUBm7E82P2gzbYSObi1aLIk27t180YClNcLi9EC1c3B89TQPYLXpbZJ2JTa4QLjjmE= Received: by 10.11.119.70 with SMTP id r70mr153190cwc; Wed, 27 Oct 2004 04:11:49 -0700 (PDT) Received: by 10.11.117.13 with HTTP; Wed, 27 Oct 2004 04:11:49 -0700 (PDT) Message-ID: <4e89b4260410270411435ae485@mail.gmail.com> Date: Wed, 27 Oct 2004 12:11:49 +0100 Reply-To: Wez Furlong To: Kamesh Jayachandran Cc: internals@lists.php.net In-Reply-To: <1098873377.30695.207361227@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1098873377.30695.207361227@webmail.messagingengine.com> Subject: Re: [PHP-DEV] [PATCH] one more possible seg fault in openssl From: kingwez@gmail.com (Wez Furlong) Committed; thanks! On Wed, 27 Oct 2004 03:36:17 -0700, Kamesh Jayachandran wrote: > Hi Wez, > $dn = array( > "countryName" => "UK", > "stateOrProvinceName" => "Somerset", > "localityName" => "Glastonbury", > "organizationName" => "The Brain Room Limited", > "organizationalUnitName" => "PHP Documentation Team", > "commonName" => "Wez Furlong", > "emailAddress" => "wez@example.com" > ); > // Non-existent or null private key > $csr = openssl_csr_new($dn, $privkey1); > ?> > will also cause the double free of privkey and hence potential seg > fault. > openssl_csr_new tries to create a fresh private key and adds to the > resource list and fails to req.priv_key to null so the dispose function > frees the private key generated. Later when the php_request_shutdown is > called it agains frees the EG(regular_list) this causes the seg fault. > > Patch is available at, > http://puggy.symonds.net/~kameshj/openssl.c.patch > > With regards > Kamesh Jayachandran > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >