Closed
Bug 40088
Opened 24 years ago
Closed 24 years ago
fix signed vs unsigned comparison in mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp
Categories
(Core Graveyard :: Plug-ins, defect, P3)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: daa, Assigned: xiaobin.lu)
Details
Attachments
(11 files)
490 bytes,
text/plain
|
Details | |
907 bytes,
text/plain
|
Details | |
610 bytes,
text/plain
|
Details | |
91.07 KB,
text/plain
|
Details | |
20.39 KB,
text/plain
|
Details | |
988 bytes,
patch
|
Details | Diff | Splinter Review | |
692 bytes,
patch
|
Details | Diff | Splinter Review | |
20.41 KB,
text/plain
|
Details | |
1000 bytes,
text/plain
|
Details | |
1.29 KB,
patch
|
Details | Diff | Splinter Review | |
21.44 KB,
patch
|
Details | Diff | Splinter Review |
original code: NS_IMETHODIMP nsPluginHostImpl::GetCookie(const char* inCookieURL, void* inOutCookieBuffer, PRUint32& inOutCookieSize) . . 2585 nsString cookieString; .. 2613 if (NS_FAILED(rv) || 2614 (((PRInt32) inOutCookieSize) < cookieString.Length())) { 2615 return NS_ERROR_FAILURE; nsString.Length is defined as a PRUint32 in nsString.h so remove PRInt32 cast on inOutCookieSize which is already declared as PRUint32 patch: diff -u -r1.115 nsPluginHostImpl.cpp --- nsPluginHostImpl.cpp 2000/05/16 00:22:30 1.115 +++ nsPluginHostImpl.cpp 2000/05/22 03:50:04 @@ -2611,7 +2611,7 @@ rv = cookieService->GetCookieString(uriIn, cookieString); if (NS_FAILED(rv) || - (((PRInt32) inOutCookieSize) < cookieString.Length())) { + (inOutCookieSize < cookieString.Length())) { return NS_ERROR_FAILURE; } bufPtr = cookieString.ToCString((char *) inOutCookieBuffer,
I have applied your patch. Waiting for approval from Brendan. Ed
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Comment 5•24 years ago
|
||
Xiaobin, here are some comments: 1. Please post the cvs -n update as an Additional comment, not as an attachment. 2. Note that your nsPluginHostImpl.cpp is out of date, as evidenced by the "Merging differences between" comment. Whenever you see this message, you'll need to merge in the diffs and make your file current. To do this: 1. mv your copy of the file in question to another name, perhaps nsPluginHostImpl.40088.cpp 2. do a cvs update in that directory, to get the new file. 3. do a cvs edit on the file in question 4. Merge in your changes to the file, being VERY CAREFUL to to obliterate anyone else's changes.
Assignee: edburns → xiaobin.lu
Status: ASSIGNED → NEW
Assignee | ||
Comment 7•24 years ago
|
||
Assignee | ||
Comment 8•24 years ago
|
||
cvs -n update (in directory E:\PROJECTS\MOZILLA\MODULES\PLUGIN\NGLSRC) cvs server: Updating . RCS file: /cvsroot/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp,v retrieving revision 1.154 retrieving revision 1.162 Merging differences between 1.154 and 1.162 into nsPluginHostImpl.cpp M nsPluginHostImpl.cpp U nsIPluginInstanceOwner.h U nsPluginInstancePeer.cpp U nsPluginViewer.cpp
Assignee | ||
Comment 9•24 years ago
|
||
cvs update (in directory E:\PROJECTS\MOZILLA\MODULES\PLUGIN\NGLSRC) cvs server: Updating . M nsPluginHostImpl.cpp cvs server: Updating mozilla cvs server: Updating mozilla/modules cvs server: Updating mozilla/modules/plugin cvs server: Updating mozilla/modules/plugin/nglsrc *****CVS exited normally with code 0*****
Assignee | ||
Comment 10•24 years ago
|
||
Assignee | ||
Comment 11•24 years ago
|
||
Assignee | ||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
This looks ok, but take out the commented out line. You still need to get review and approval from av@netscape.com, since this is a plugins bug.
Assignee | ||
Comment 14•24 years ago
|
||
M nsPluginHostImpl.cpp cvs server: Updating mozilla cvs server: Updating mozilla/modules cvs server: Updating mozilla/modules/plugin cvs server: Updating mozilla/modules/plugin/nglsrc
Assignee | ||
Comment 15•24 years ago
|
||
Assignee | ||
Comment 16•24 years ago
|
||
Assignee | ||
Comment 17•24 years ago
|
||
Assignee | ||
Comment 18•24 years ago
|
||
Based on Ed's suggestion, I removed the comment and posted the corresponding attachments which marked as "( the lastest)". This is the first time I use Buggzilla and I try my best to not mess up this page even though I did. I hope it was not too late. Thanks for your guys help and tolerance.
Comment 19•24 years ago
|
||
Seems right thing to do, r=av.
Assignee | ||
Comment 20•24 years ago
|
||
This bug is fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 21•24 years ago
|
||
Xiaobin, you can't mark it fixed until it's checked into the tree!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 22•24 years ago
|
||
You have r=av. Can you get a=brendan so we can check this into the trunk and close this bug?
sr=shaver (I still can't believe there was a tarball attached for a one-line diff, but I'm trying to keep it from really getting to me.)
Assignee | ||
Comment 24•24 years ago
|
||
Ed,I will get it approved by Brendan.
You have r and sr: you can check in now.
Assignee | ||
Comment 26•24 years ago
|
||
Ed has checked the fix in the truck so I would like to change this bug to fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 27•24 years ago
|
||
verified that the fix was checked in version 1.186 on lxr.
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•