Return-Path: Delivered-To: apmail-hadoop-zookeeper-commits-archive@minotaur.apache.org Received: (qmail 64690 invoked from network); 30 Apr 2010 22:51:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 22:51:08 -0000 Received: (qmail 39701 invoked by uid 500); 30 Apr 2010 22:51:08 -0000 Delivered-To: apmail-hadoop-zookeeper-commits-archive@hadoop.apache.org Received: (qmail 39665 invoked by uid 500); 30 Apr 2010 22:51:07 -0000 Mailing-List: contact zookeeper-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-dev@ Delivered-To: mailing list zookeeper-commits@hadoop.apache.org Received: (qmail 39657 invoked by uid 99); 30 Apr 2010 22:51:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 22:51:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 22:51:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EEC6123888AD; Fri, 30 Apr 2010 22:50:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r939866 - in /hadoop/zookeeper/trunk: CHANGES.txt src/contrib/zkpython/src/c/zookeeper.c src/contrib/zkpython/src/test/acl_test.py Date: Fri, 30 Apr 2010 22:50:13 -0000 To: zookeeper-commits@hadoop.apache.org From: henry@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100430225013.EEC6123888AD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: henry Date: Fri Apr 30 22:50:13 2010 New Revision: 939866 URL: http://svn.apache.org/viewvc?rev=939866&view=rev Log: ZOOKEEPER-758. zkpython segfaults on invalid acl with missing key Modified: hadoop/zookeeper/trunk/CHANGES.txt hadoop/zookeeper/trunk/src/contrib/zkpython/src/c/zookeeper.c hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/acl_test.py Modified: hadoop/zookeeper/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=939866&r1=939865&r2=939866&view=diff ============================================================================== --- hadoop/zookeeper/trunk/CHANGES.txt (original) +++ hadoop/zookeeper/trunk/CHANGES.txt Fri Apr 30 22:50:13 2010 @@ -41,6 +41,9 @@ BUGFIXES: ZOOKEEPER-750. move maven artifacts into "dist-maven" subdir of the release (package target) (phunt via henryr) + ZOOKEEPER-758. zkpython segfaults on invalid acl with missing key + (Kapil Thangavelu via henryr) + IMPROVEMENTS: ZOOKEEPER-724. Improve junit test integration - log harness information (phunt via mahadev) Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/c/zookeeper.c URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/c/zookeeper.c?rev=939866&r1=939865&r2=939866&view=diff ============================================================================== --- hadoop/zookeeper/trunk/src/contrib/zkpython/src/c/zookeeper.c (original) +++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/c/zookeeper.c Fri Apr 30 22:50:13 2010 @@ -286,8 +286,9 @@ PyObject *build_string_vector(const stru /* Returns 1 if the PyObject is a valid representation of an ACL, and 0 otherwise. */ -int check_is_acl(PyObject *o) { +int check_is_acl(PyObject *o) { int i; + PyObject *entry; if (o == NULL) { return 0; } @@ -295,10 +296,26 @@ int check_is_acl(PyObject *o) { return 0; } for (i=0;i