harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kostin Mihail (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1987) [DRLVM] [JVMTI] Insufficient check of fieldID in Field group of JVMTI functions.
Date Fri, 27 Oct 2006 12:16:17 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1987?page=all ]

Kostin Mihail updated HARMONY-1987:
-----------------------------------

    Attachment: test.zip

Here is test-case zip-file. To run test execute run.sh. To compile - compile_lnx.sh or compile_win.sh.

> [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
>         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

        

Mime
View raw message