Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 23266 invoked from network); 27 Jul 2009 03:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jul 2009 03:31:32 -0000 Received: (qmail 67951 invoked by uid 500); 27 Jul 2009 03:32:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 67873 invoked by uid 500); 27 Jul 2009 03:32:37 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 67864 invoked by uid 99); 27 Jul 2009 03:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 03:32:37 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 03:32:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2D753234C004 for ; Sun, 26 Jul 2009 20:32:15 -0700 (PDT) Message-ID: <1552396765.1248665535184.JavaMail.jira@brutus> Date: Sun, 26 Jul 2009 20:32:15 -0700 (PDT) From: "Jim Yu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6285) [JDWP][Java6] Fix a bug in Execute method of GetValuesHandler that might result in crash In-Reply-To: <64415903.1248426374780.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735456#action_12735456 ] Jim Yu commented on HARMONY-6285: --------------------------------- Verified at r798015. Thanks, Regis. > [JDWP][Java6] Fix a bug in Execute method of GetValuesHandler that might result in crash > ---------------------------------------------------------------------------------------- > > Key: HARMONY-6285 > URL: https://issues.apache.org/jira/browse/HARMONY-6285 > Project: Harmony > Issue Type: Bug > Components: JDK > Affects Versions: 5.0M10 > Reporter: Jim Yu > Assignee: Regis Xu > Fix For: 5.0M11 > > Attachments: HARMONY-6285.diff > > > In Execute method of GetValuesHandler, if the array object can't be retrieved from the MapFromObjectID method, the value for it would be null. > Then, in the following JNI method, a null value passed to it would definitely result in a crash. To solve the problem, we should throw an exception to notify the upper level method that "GetValues: ReadArrayID() returned NULL". > jclass arrObjClass = jni->GetObjectClass(arrayObject); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.