| Summary: | AIOOBE calling IAHyperlink methods | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Carolyn MacLeod <carolynmacleod4> | ||||||
| Component: | SWT | Assignee: | Carolyn MacLeod <carolynmacleod4> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | Silenio_Quarti | ||||||
| Version: | 3.7 | Flags: | Silenio_Quarti:
review+
|
||||||
| Target Milestone: | 3.6.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 174036 [details]
patch to fix the problem
The attached patch specifies the correct number of parameters for IAHyperlink methods. The problem was that when the IAAction method parameters were included in the IAHyperlink spec (because IAHyperlink derives from IAAction), QueryInterface, AddRef, and Release were included twice. SSQ please review the patch for 3.6.1. Fixed > 20100712 in 3.6.1 and in HEAD (3.7). |
Created attachment 174033 [details] test case that shows the failure Run the attached snippet, which sets up a hyperlink listener with a name and description. Run AccProbe, and try to look at the IAHyperlink name and description. There is an array index out of bounds calling "method5" which is IAccessibleHyperlink::getDescription. The number of parameters is incorrect - it should be 2, but instead, there are 0.