Closed Bug 1117611 Opened 10 years ago Closed 10 years ago

Shadowed variable in SandboxBroker::SetSecurityLevelForContentProcess()

Categories

(Core :: Security, defect)

x86_64
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

Attachments

(1 file)

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.
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+
In IRC, njn said this isn't a security bug.
Group: core-security
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.

Attachment

General

Created:
Updated:
Size: