Closed Bug 1165735 Opened 9 years ago Closed 9 years ago

Make ThreadSharedFloatArrayBufferList::mContents infallible

Categories

(Core :: Web Audio, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: poiru, Assigned: poiru)

References

Details

Attachments

(1 file)

ThreadSharedFloatArrayBufferList::mContents is currently a AutoFallibleTArray. However, in the ThreadSharedFloatArrayBufferList constructor, `mContents.SetLength` is used without checking its return value. We should either fix that (because it will cause a warning after bug 968520 lands) or make mContents a nsAutoTArray. ThreadSharedFloatArrayBufferList objects seem to created using infallible new[0], so making mContents infallible should be safe.

[0]: http://mxr.mozilla.org/mozilla-central/search?string=new+ThreadSharedFloatArrayBufferList
Blocks: 968520
https://hg.mozilla.org/mozilla-central/rev/42bb6fb19a10
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: