Closed
Bug 196340
Opened 23 years ago
Closed 23 years ago
Change NS_REINTERPRET_CAST(nsIScriptContext*, JS_GetContextPrivate(cx)) to use Static Cast
Categories
(Core :: Security: CAPS, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: timeless, Assigned: security-bugs)
Details
Attachments
(1 file)
|
823 bytes,
patch
|
security-bugs
:
review+
hjtoi-bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
found while reviewing bug 196241:
in bug 168316 comment 14, heikki wrote:
>>+ nsCOMPtr<nsIScriptContext> scriptContext =
>>+ NS_REINTERPRET_CAST(nsIScriptContext*, JS_GetContextPrivate(cx));
> Does this require reinterpret cast or would static cast do?
All other consumers (xpconnect, jsd, dom) uses static cast. At the present time
SeaMonkey only has one producer (dom).
Attachment #116562 -
Flags: superreview?(heikki)
Attachment #116562 -
Flags: review?(mstoltz)
Attachment #116562 -
Attachment description: change cast from reinterpret to static →
Attachment #116562 -
Attachment is patch: false
Attachment #116562 -
Flags: superreview?(heikki)
Attachment #116562 -
Flags: review?(mstoltz)
Attachment #116562 -
Attachment description: → change cast from reinterpret to static
Attachment #116562 -
Attachment filename: a → patch
Attachment #116562 -
Flags: superreview?(heikki)
Attachment #116562 -
Flags: review?(mstoltz)
Attachment #116562 -
Attachment is patch: true
Comment on attachment 116562 [details] [diff] [review]
change cast from reinterpret to static
How did you manage to apply for double review and super review? :)
sr=heikki
Attachment #116562 -
Flags: superreview?(heikki)
Attachment #116562 -
Flags: superreview+
| Assignee | ||
Comment 3•23 years ago
|
||
Comment on attachment 116562 [details] [diff] [review]
change cast from reinterpret to static
r=mstoltz
Attachment #116562 -
Flags: review?(mstoltz) → review+
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•