Mozilla Home
Privacy
Cookies
Legal
Bugzilla
Browse
Advanced Search
New Bug
Reports
Documentation
Log In
Log In with GitHub
or
Remember me
Browse
Advanced Search
New Bug
Reports
Documentation
Attachment 364282 Details for
Bug 472032
[patch]
address comment 3 [Checkin: Comment 6]
bug.472032.caps.sizeof.voidp.assert.1.patch (text/plain), 1.30 KB, created by
:Mook
(
hide
)
Description:
address comment 3 [Checkin: Comment 6]
Filename:
MIME Type:
Creator:
:Mook
Size:
1.30 KB
patch
obsolete
># HG changeset patch ># User Mook <mook.moz+hg@gmail.com> ># Date 1235639691 28800 ># Node ID 03e926cc55f967162fb652b6b3dc9ff0783cb484 ># Parent 1db3095fbf866b567fb3944902ab2eebf2ed3dc1 >bug 472032 - win64 sizeof(long)!=sizeof(void*) assertion in nsScriptSecurityManager.cpp (r/sr=dveditz) > >changed SecurityLevel to use PRWord, clarified assertion on the protected code. > >diff --git a/caps/include/nsScriptSecurityManager.h b/caps/include/nsScriptSecurityManager.h >--- a/caps/include/nsScriptSecurityManager.h >+++ b/caps/include/nsScriptSecurityManager.h >@@ -148,7 +148,7 @@ > // Property Policy > union SecurityLevel > { >- PRInt32 level; >+ PRWord level; > char* capability; > }; > >diff --git a/caps/src/nsScriptSecurityManager.cpp b/caps/src/nsScriptSecurityManager.cpp >--- a/caps/src/nsScriptSecurityManager.cpp >+++ b/caps/src/nsScriptSecurityManager.cpp >@@ -3201,7 +3201,9 @@ > , mXPCDefaultGrantAll(PR_FALSE) > #endif > { >- NS_ASSERTION(sizeof(long) == sizeof(void*), "long and void* have different lengths on this platform. This may cause a security failure."); >+ NS_ASSERTION(sizeof(PRWord) == sizeof(void*), >+ "PRWord and void* have different lengths on this platform. " >+ "This may cause a security failure with the SecurityLevel union."); > mPrincipals.Init(31); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Flags:
Mook
: review+
Mook
: superreview+
Actions:
View
|
Diff
|
Review
Attachments on
bug 472032
:
363527
| 364282 |
366299