Closed Bug 146797 Opened 23 years ago Closed 23 years ago

bullet-proof RDF containers from script [@ RDFContainerUtilsImpl::IndexOf]

Categories

(Core Graveyard :: RDF, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: waterson, Assigned: waterson)

References

Details

(Keywords: crash, topcrash+, Whiteboard: [ADT1 RTM][FIXED ON TRUNK])

Crash Data

Attachments

(1 file, 1 obsolete file)

It's possible to construct an RDF container via (trusted) script and leave it uninitialized. This is causing a topcrash in AIM for the commercial release (cf. Netscape internal URL <http://bugscape.netscape.com/show_bug.cgi?id=15942>). Attaching a patch to bullet-proof the container object as well as the container utils service.
I also removed some unnecessary null checks; e.g., for valid out-param slots.
rjc or tingley, could you r=? thanks!
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.0.1
Comment on attachment 84924 [details] [diff] [review] bullet-proofing for RDF container and container-utils sr=shaver without the PRECONDITION noise for cases that may not indicate a bug to be fixed in the scripted caller.
Attachment #84924 - Flags: superreview+
Attachment #84924 - Attachment is obsolete: true
Comment on attachment 84928 [details] [diff] [review] as above, sans noise. In RemoveElementAt(), do you really want to remove the null out ptr check for _retval? Other than that r=tingley I'm getting on a plane shortly (and will be internet-less for the weekend), so rjc will need to re-review if anything changes.
Attachment #84928 - Flags: review+
Yes, I do. The out parameter is set by the XPConnect engine, and will not be null.
Severity: normal → critical
Summary: bullet-proof RDF containers from script → bullet-proof RDF containers from script [@ RDFContainerUtilsImpl::IndexOf]
Whiteboard: [ADT1 RTM]
Blocks: 136392
nominating for mach v rtm.
Keywords: adt1.0.1
adt1.0.1+ (on ADT's behalf) approval for checkin to the 1.0 branch, pending Driver's approval. Pls check this in tonight, and add the fixed1.0.1 keyword.
Fix checked in on the trunk. Leaving the bug open for branch approval.
Whiteboard: [ADT1 RTM] → [ADT1 RTM][FIXED ON TRUNK]
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+" keyword and add the "fixed1.0.1" keyword.
Fix checked in on branch.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 146529 has been marked as a duplicate of this bug. ***
verified trunk and branch - 07/18/2002 builds, win NT4, linux rh6, mac osX
Status: RESOLVED → VERIFIED
verified1.0.1
Keywords: verified1.0.1
Crash Signature: [@ RDFContainerUtilsImpl::IndexOf]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: