Closed
Bug 9976
Opened 26 years ago
Closed 26 years ago
XP-COM Proxy code crashes when trying to AutoProxy parameters without a typelibrary
Categories
(Core :: XPCOM, defect, P1)
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: travis, Assigned: dveditz)
Details
(Keywords: crash)
(This bug imported from BugSplat, Netscape's internal bugsystem. It
was known there as bug #358181
http://scopus.netscape.com/bugsplat/show_bug.cgi?id=358181
Imported into Bugzilla on 07/15/99 22:30)
The XPCOM Proxy code crashes when trying to marhal or autoproxy a parameter that
there isn't a typelib for. It should instead return a Proxy error nsresult.
Perhaps NS_ERROR_PROXY_INVALID_PARAMETER which would be the same as "#define
RPC_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80010010L)" for COM
compatibility?
Updated•26 years ago
|
Status: NEW → ASSIGNED
Priority: P1
Comment 1•26 years ago
|
||
I had to add two new error code since I would like to know if the conversion
happens before the REAL meathod is called or after. The error codes are:
#define NS_ERROR_PROXY_INVALID_IN_PARAMETER ((nsresult) 0x80010010L)
#define NS_ERROR_PROXY_INVALID_OUT_PARAMETER ((nsresult) 0x80010011L)
note the different result code. Is the error code compatiblity a requirement?
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: M9
Comment 2•26 years ago
|
||
I just checked these changes in. If the two error code is a problem, we can do
a pre-flight check before the real method is ever called.
| Assignee | ||
Updated•26 years ago
|
Status: RESOLVED → REOPENED
| Assignee | ||
Comment 3•26 years ago
|
||
I can't build anymore, VC5.0 chokes on the fact that not all paths return an
nsresult. How is it working on Tinderbox?
Plus there's a potentially huge memory leak -- you do a QueryInterface() each
time through the loop, but just bail on a failure. Would each of these be a
leak in that case, or does your object destructor take care of that?
I'm reopening until I can get it to build...
Updated•26 years ago
|
Assignee: dougt → dveditz
Status: REOPENED → NEW
Comment 5•26 years ago
|
||
assigning to dan.
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Marking Verified. Please reopen if still an open issue. Old bug.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•