Closed
Bug 1117611
Opened 9 years ago
Closed 9 years ago
Shadowed variable in SandboxBroker::SetSecurityLevelForContentProcess()
Categories
(Core :: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(1 file)
1.42 KB,
patch
|
bobowen
:
review+
|
Details | Diff | Splinter Review |
cppcheck says this:
> security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:113: error: Uninitialized variable: ret
This is caused by the block-scoped |ret| overshadowing the function-scoped |ret|. It's not a problem in practice because the one place that calls this function doesn't look at the return value. Still, probably worth fixing to avoid possible future problems.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8543733 -
Flags: review?(tabraldes)
Comment 2•9 years ago
|
||
Comment on attachment 8543733 [details] [diff] [review] Fix shadowed variable in SandboxBroker::SetSecurityLevelForContentProcess() Review of attachment 8543733 [details] [diff] [review]: ----------------------------------------------------------------- Whoops - thanks for fixing this. Doing something when something goes wrong with the sandbox policy setup is on my list of things to look at. :-)
Attachment #8543733 -
Flags: review?(tabraldes) → review+
Updated•9 years ago
|
Keywords: csectype-uninitialized
Comment 3•9 years ago
|
||
In IRC, njn said this isn't a security bug.
Group: core-security
Keywords: csectype-uninitialized
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/757184e87736
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/757184e87736
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•