Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 97238 invoked from network); 2 Nov 2006 14:31:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 14:31:41 -0000 Received: (qmail 114 invoked by uid 500); 2 Nov 2006 14:31:52 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 99983 invoked by uid 500); 2 Nov 2006 14:31:52 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 99968 invoked by uid 99); 2 Nov 2006 14:31:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 06:31:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 06:31:39 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BBF077142F0 for ; Thu, 2 Nov 2006 06:31:19 -0800 (PST) Message-ID: <24005030.1162477879767.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 06:31:19 -0800 (PST) From: "Gregory Shimansky (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Assigned: (HARMONY-1987) [DRLVM] [JVMTI] Insufficient check of fieldID in Field group of JVMTI functions. In-Reply-To: <28153508.1161951256561.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1987?page=all ] Gregory Shimansky reassigned HARMONY-1987: ------------------------------------------ Assignee: Gregory Shimansky > [DRLVM] [JVMTI] Insufficient check of fieldID in Field group of JVMTI functions. > -------------------------------------------------------------------------------- > > Key: HARMONY-1987 > URL: http://issues.apache.org/jira/browse/HARMONY-1987 > Project: Harmony > Issue Type: Improvement > Components: DRLVM > Reporter: Kostin Mihail > Assigned To: Gregory Shimansky > Attachments: fieldID_check_for_JVMTI.patch, test.zip > > > Functions from Field group of JVMTI functions crashes if it's called with incorrect fieldID. According to specification function should return JVMTI_ERROR_INVALID_FIELDID (25) in this case. > This occurs because of insufficient check of fieldID in Field group of JVMTI functions. Those functions have no checking of whether field with this fieldID exists. > Solution to this problem is to add additional checking of fieldID to know whether this field exists. This checking is as follows: take list of _all_ class fields and its IDs and check whether fieldID is in that list before to start working with it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira