Closed
Bug 290239
Opened 20 years ago
Closed 20 years ago
various hazards in do_CreateInstanceFromCategory
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: shaver, Assigned: shaver)
References
Details
Attachments
(1 file)
1.60 KB,
patch
|
benjamin
:
review+
darin.moz
:
superreview+
brendan
:
approval1.8b2+
|
Details | Diff | Splinter Review |
1) mOuter is never initialized, so you always end up trying to aggregate against
a random stack pointer.
2) we test rv after performing the createInstance in operator(), but don't
actually set it based on that call
3) unconditionally store through mErrorPtr, though it can trivially be null.
Patch coming up for these woes.
(No wonder nobody uses it!)
Assignee | ||
Comment 1•20 years ago
|
||
All of these are my bugs, natch.
Attachment #180638 -
Flags: superreview?(benjamin)
Attachment #180638 -
Flags: review?(benjamin)
Attachment #180638 -
Flags: approval1.8b2?
Comment 2•20 years ago
|
||
Comment on attachment 180638 [details] [diff] [review]
3 fixes
I'm not an XPCOM peer, so darin or dougt needs to review also.
Attachment #180638 -
Flags: superreview?(darin)
Attachment #180638 -
Flags: superreview?(benjamin)
Attachment #180638 -
Flags: review?(benjamin)
Attachment #180638 -
Flags: review+
Comment 3•20 years ago
|
||
Comment on attachment 180638 [details] [diff] [review]
3 fixes
>Index: components/nsComponentManager.cpp
>+ rv = compMgr->CreateInstanceByContractID(value,
> mOuter,
> aIID,
> aInstancePtr);
nit: please fix parameter alignment while here.
sr=darin
Attachment #180638 -
Flags: superreview?(darin) → superreview+
Comment 4•20 years ago
|
||
Comment on attachment 180638 [details] [diff] [review]
3 fixes
a=brendan for 1.8b2.
/be
Attachment #180638 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 5•20 years ago
|
||
Fixed, thanks all for speedy reviews.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•