Closed
Bug 1131250
Opened 10 years ago
Closed 10 years ago
[Camera][Gecko] MapIsoFromGonk() SIGSEGVs on aIso == nullptr
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(firefox38 fixed)
RESOLVED
FIXED
2.2 S6 (20feb)
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: mikeh, Assigned: mikeh)
References
Details
Attachments
(1 file, 1 obsolete file)
1.73 KB,
patch
|
aosmond
:
review+
|
Details | Diff | Splinter Review |
Found while investigating camera on Shinano.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Blocks: shinano-backlog
Comment 2•10 years ago
|
||
Comment on attachment 8561611 [details] [diff] [review]
Handle ISO_MODE value == nullptr, v1
Review of attachment 8561611 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM although I note that we print out the potentially null string in GonkCameraParameters::Initialize. I assume that all of our various printf paths are %s + null pointer safe?
Attachment #8561611 -
Flags: review?(aosmond) → review+
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Andrew Osmond [:aosmond] from comment #2)
> LGTM although I note that we print out the potentially null string in
> GonkCameraParameters::Initialize. I assume that all of our various printf
> paths are %s + null pointer safe?
In the Initialize() case, the array of isoModes has a zero length, so nothing gets printed.
Right now, this bug really only pops up when inspecting the object in the WebIDE, where .isoMode gets queried regardless of what capabilities.isoModes returns. So this just makes it more robust.
Assignee | ||
Comment 4•10 years ago
|
||
Make the calling function more robust as well. Practically, this means we'll never actually hit MapIsoFromGonk() at all, but we should keep the !aIso check in there anyway just in case.
Attachment #8561611 -
Attachment is obsolete: true
Attachment #8561654 -
Flags: review?(aosmond)
Updated•10 years ago
|
Attachment #8561654 -
Flags: review?(aosmond) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S6 (20feb)
You need to log in
before you can comment on or make changes to this bug.
Description
•