Closed
Bug 1117611
Opened 10 years ago
Closed 10 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)
(deleted),
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•10 years ago
|
||
Attachment #8543733 -
Flags: review?(tabraldes)
Comment 2•10 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•10 years ago
|
Keywords: csectype-uninitialized
Comment 3•10 years ago
|
||
In IRC, njn said this isn't a security bug.
Group: core-security
Keywords: csectype-uninitialized
Assignee | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 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
•