Closed Bug 1202988 Opened 9 years ago Closed 9 years ago

Don't use GetTempPath for flash's mms.cfg hack for low integrity

Categories

(Core Graveyard :: Plug-ins, defect)

Unspecified
Windows
defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file)

GetTempPath doesn't return AppData\LocalLow\Temp.  So it isn't good for low integrity (sanbox level=2)
Assignee: nobody → m_kato
Bug 1202988 - Don't use GetTempPath for flash's mms.cfg hack for low integrity; r?aklotz
Attachment #8658575 - Flags: review?(aklotz)
Comment on attachment 8658575 [details]
MozReview Request: Bug 1202988 - Don't use GetTempPath for flash's mms.cfg hack for low integrity; r?aklotz

https://reviewboard.mozilla.org/r/18661/#review16749

r=me with issue addressed.

::: dom/plugins/ipc/PluginModuleChild.cpp:1983
(Diff revision 1)
> +        if (wcslen(path) + 5 < aLen) {

I don't really like this magic number '5' here. I see that it's for "\\Temp" below. So can you just create a NS_NAMED_LITERAL_STRING for "\\Temp" and then call .Length() on it to return the length, instead of having that 5 in there?
Attachment #8658575 - Flags: review?(aklotz) → review+
https://hg.mozilla.org/mozilla-central/rev/5f612dcf8a09
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Depends on: 1260130
No longer depends on: 1260130
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: