Closed
Bug 228095
Opened 21 years ago
Closed 21 years ago
AIX: 64-bit build error in nsScriptSecurityManager.cpp
Categories
(Core :: Security: CAPS, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: pkwarren, Assigned: pkwarren)
Details
(Keywords: 64bit)
Attachments
(1 file)
764 bytes,
patch
|
caillon
:
review+
brendan
:
superreview+
brendan
:
approval1.6+
|
Details | Diff | Splinter Review |
On AIX, I am getting the following error trying to build
nsScriptSecurityManager.cpp in 64-bit:
"/home/pkw/sb/mozilla/1.6b/mozilla/caps/src/nsScriptSecurityManager.cpp", line
667.62: 1540-0216 (S) An expression of type "nsIURI *" cannot be converted to
type "PRBool".
gmake[4]: *** [nsScriptSecurityManager.o] Error 1
gmake[4]: Leaving directory `/home/pkw/sb/mozilla/1.6b/mozilla/obj-opt64/caps/src'
gmake[3]: *** [libs] Error 2
This is the line it is bailing on:
rv = CheckSameOriginDOMProp(subjectPrincipal, objectPrincipal,
aAction, (PRBool)aTargetURI);
This was added in Bug 163950, and it looks like Brendan's review comment was
just missed when checking in this fix:
"Isn't aTargetURI a pointer? You can't just cast to (PRBool) (which is to say,
to (int)), and get a valid boolean. Best to use aTargetURI != nsnull here."
Assignee | ||
Comment 1•21 years ago
|
||
Patch which addresses Brendan's comment (and fixes the 64-bit build).
Comment 2•21 years ago
|
||
Let's get the patch reviewed (caillon and I can r= and sr=) and checked in for
1.6 final.
/be
Flags: blocking1.6+
Comment 3•21 years ago
|
||
Comment on attachment 137210 [details] [diff] [review]
Patch v1
/me hates it when review comments don't get addressed right away.
Attachment #137210 -
Flags: review+
Comment 4•21 years ago
|
||
Comment on attachment 137210 [details] [diff] [review]
Patch v1
I don't check to see that my review comments are addressed, esp. when the patch
submitter acknowledged my point! But then I don't trust everyone equally; I
was hashing everyone into the "trusted" bucket.
/be
Attachment #137210 -
Flags: superreview+
Attachment #137210 -
Flags: approval1.6+
Assignee | ||
Updated•21 years ago
|
Assignee: security-bugs → pkw
Assignee | ||
Comment 5•21 years ago
|
||
Fixed.
Checking in nsScriptSecurityManager.cpp;
/cvsroot/mozilla/caps/src/nsScriptSecurityManager.cpp,v <--
nsScriptSecurityManager.cpp
new revision: 1.224; previous revision: 1.223
done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•