You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jim Yu (JIRA)" <ji...@apache.org> on 2009/07/27 05:32:15 UTC
[jira] Commented: (HARMONY-6285) [JDWP][Java6] Fix a bug in Execute
method of GetValuesHandler that might result in crash
[ 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.