You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Regis Xu (JIRA)" <ji...@apache.org> on 2009/07/24 11:53:14 UTC
[jira] Resolved: (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:all-tabpanel ]
Regis Xu resolved HARMONY-6285.
-------------------------------
Resolution: Fixed
Thanks Jim,
Patch applied at 797398, please verify.
> [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.