Open Bug 625648 Opened 14 years ago Updated 2 years ago

Stop unsafe composures of nsAutoTArrays

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

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.
Putting an nsAutoTArray into a nsTArray of any sort will cause problems.  You also can't put nsAutoTArrays in pldhashtables.
...that is, unless we make nsAutoTArray memmoveable in bug 682735.
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.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.