Open
Bug 625648
Opened 14 years ago
Updated 2 years ago
Stop unsafe composures of nsAutoTArrays
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
NEW
People
(Reporter: khuey, Unassigned)
Details
According to https://bugzilla.mozilla.org/show_bug.cgi?id=625247#c8, putting a class that has an nsAutoTArray member into an nsAutoTArray will cause bad things to happen. We should prevent this, either statically if possible or through a runtime abort if necessary.
Comment 1•13 years ago
|
||
Putting an nsAutoTArray into a nsTArray of any sort will cause problems. You also can't put nsAutoTArrays in pldhashtables.
Comment 2•13 years ago
|
||
...that is, unless we make nsAutoTArray memmoveable in bug 682735.
Reporter | ||
Comment 3•13 years ago
|
||
Right, this bug was about preventing you from doing that, either statically or through a runtime abort, so that if you did you'd see a clear error instead of random crashes.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•