Closed Bug 505682 Opened 15 years ago Closed 8 years ago

nsSSLIOLayerHelpers::Init must rv check calls to hashtable Init

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

(Whiteboard: [psm-logic])

Attachments

(1 file)

http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/xpcom/ds/nsDoubleHashtable.h&rev=3.17&mark=99,103-104,330#99

psm isn't checking the rv from Init here, that's a bug. (but it's unlikely to
be the cause of this crash...)

I wonder if someone could possibly explain why there are so many statics.

If there's no good reason to use statics, then we could probably do away with dynamic allocation for those two objects....
Assignee: kaie → timeless
Status: NEW → ASSIGNED
Attachment #389895 - Flags: review?(kaie)
Whiteboard: [psm-logic]
Comment on attachment 389895 [details] [diff] [review]
and fix its caller...

bitrot and too much distracting noise in this patch
Attachment #389895 - Flags: review?(kaie) → review-
adding brian and honza in case they want to work on this correctness cleanup
Bug 734847 made nsTHashtable infalliable by default (and AFAICT nsNSSIOLayer.(h|cpp) don't use fallible ones) + Bug 910989 got rid of nsTHashtable::Init(), so there's nothing to do here anymore.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: