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)

x86
Windows 2000
defect
Not set
trivial

Tracking

()

VERIFIED FIXED

People

(Reporter: timeless, Assigned: security-bugs)

Details

Attachments

(1 file)

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+
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
V
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: