Closed Bug 590128 Opened 14 years ago Closed 14 years ago

crash [@nsAccessible::GetIndexOf]

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: davidb, Assigned: surkov)

Details

Attachments

(1 file)

We're getting a few strange crash stacks on Linux (4.0b5pre).

SEGV at 0x20 (which happens to be hex for a whitespace " ").

Top of stack:
0  	libxul.so  	nsAccessible::GetIndexOf  	 accessible/src/base/nsAccessible.cpp:2881
1 		@0xa5a5e94f 	
2 	libxul.so 	nsAccessible::GetIndexOfEmbeddedChild 	accessible/src/base/nsAccessible.cpp:2936
3 	libxul.so 	nsHyperTextAccessible::GetLinkIndexAtOffset 	accessible/src/html/nsHyperTextAccessible.h:125
4 	libxul.so 	getLinkIndexCB 	accessible/src/atk/nsMaiInterfaceHypertext.cpp:102
5 	libatk-1.0.so.0.3009.1 	libatk-1.0.so.0.3009.1@0xa4ba

(from: http://crash-stats.mozilla.com/report/index/cb849347-5333-40a0-9e2b-3c26b2100818)
At the first glance it looks like a missing null-check.
Attached patch patchSplinter Review
GetLinkIndexAtOffset is used without proper checks on platform specific part. Add a check to it rather than to GetIndexOf.
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #468713 - Flags: review?(bolterbugz)
Attachment #468713 - Flags: approval2.0?
Comment on attachment 468713 [details] [diff] [review]
patch

Looks good a+r=me :)
Attachment #468713 - Flags: review?(bolterbugz)
Attachment #468713 - Flags: review+
Attachment #468713 - Flags: approval2.0?
Attachment #468713 - Flags: approval2.0+
landed on 2.0 - http://hg.mozilla.org/mozilla-central/rev/55f009ed5368
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: