Closed
Bug 790503
Opened 13 years ago
Closed 13 years ago
On Mac Mini, defaultCalibration reads outside of sensors[]
Categories
(Core :: Hardware Abstraction Layer (HAL), defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: jruderman, Assigned: dougt)
References
Details
(Keywords: crash, testcase, Whiteboard: [asan])
Attachments
(4 files)
1. Build Firefox with Address Sanitizer.
https://developer.mozilla.org/en-US/docs/Building_Firefox_with_Address_Sanitizer
2. Run Firefox on a Mac without a sudden motion sensor, such as a Mac Mini.
3. Load the testcase.
Result: ASan reports that defaultCalibration in smslib.mm reads past the end of sensors[].
After the loop in smsStartup finds no sensors, sensorNum is SENSOR_COUNT. smsStartup returns |failure_result|, but EnableSensorNotifications ignores this return value.
Reporter | ||
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•13 years ago
|
||
Reporter | ||
Updated•13 years ago
|
Whiteboard: [asan]
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → doug.turner
Assignee | ||
Comment 3•13 years ago
|
||
I haven't tested/compiled this, but it should probably work.
Attachment #660311 -
Flags: review?(jruderman)
Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 660311 [details] [diff] [review]
patch v.1
This fixes the bug for me. But I think you should get code review from a peer. And remove the trailing whitespace.
Attachment #660311 -
Flags: review?(jruderman) → feedback+
Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 660311 [details] [diff] [review]
patch v.1
Review of attachment 660311 [details] [diff] [review]:
-----------------------------------------------------------------
i'll get the whitespace before I check-in.
Attachment #660311 -
Flags: review?(blassey.bugs)
Updated•13 years ago
|
Attachment #660311 -
Flags: review?(blassey.bugs) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•