Closed Bug 333839 Opened 18 years ago Closed 18 years ago

nsTArray::SetLength doesn't increase array's length

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: peterv, Assigned: peterv)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Doing

nsTArray<...> bar;
bar.SetLength(1);
bar[0] = ...;

asserts with "invalid array index: 'i < Length()'".
Attached patch v1Splinter Review
Attachment #218273 - Flags: superreview?(darin)
Attachment #218273 - Flags: review?(benjamin)
Attachment #218273 - Flags: superreview?(darin) → superreview+
Attachment #218273 - Flags: review?(benjamin) → review+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attachment #218273 - Flags: approval-branch-1.8.1?(darin)
Attachment #218273 - Flags: approval-branch-1.8.1?(darin) → approval-branch-1.8.1+
Keywords: fixed1.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: