Closed Bug 49646 Opened 24 years ago Closed 23 years ago

C style casts that should probably be using C++ casts?

Categories

(Core Graveyard :: Security: UI, defect, P3)

Other Branch
defect

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: bruce, Assigned: ddrinan0264)

Details

From current CVS (HP ports tinderbox):

Warning 749: "nsCrypto.cpp", line 214 # The cast from 'nsIScriptGlobalObject *' 
to 'nsISupports *' is performed as a 'reinterpret_cast'. This operation is 
non-portable and potentially unsafe.
                                        (nsISupports *)global, 
                                        ^^^^^^^^^^^^^^^        

Warning 749: "nsCrypto.cpp", line 1216 # The cast from 'nsIScriptGlobalObject *' 
to 'nsISupports *' is performed as a 'reinterpret_cast'. This operation is 
non-portable and potentially unsafe.
                                    (nsISupports *)global, 
(void**)&mScriptObject);
                                    ^^^^^^^^^^^^^^^                             
   
Warning 749: "nsCrypto.cpp", line 1407 # The cast from 'nsIScriptGlobalObject *' 
to 'nsISupports *' is performed as a 'reinterpret_cast'. This operation is 
non-portable and potentially unsafe.
                                    (nsISupports *)global, 
(void**)&mScriptObject);
                                    ^^^^^^^^^^^^^^^
Changing QA contact to nitinp
QA Contact: junruh → nitinp
Mass reassigning nitinp's bugs to me.
QA Contact: nitinp → junruh
Bruce Mitchener, any change in status with this bug?
Resolving invalid, since there has been no feed back on this bug for 8 months.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
If the invalid casts are still in the code (and I don't know that they are, I'm
too busy to do much on Mozilla these months), then there's no reason to close
out this bug unless these types of bugs are deemed to be unworthy of the effort
to fix them.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
With the PSM2 landing, the file nsCrypto.cpp is no longer in the build.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → INVALID
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.