Closed
Bug 468293
Opened 16 years ago
Closed 15 years ago
Audit alloc failure in fishsound annodex
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: cajbir)
References
()
Details
(Keywords: crash, Whiteboard: [sg:audit])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fishsound_vorbis.c?rev=a2c9bc656ed5&mark=165-166,173,475-477,
note that realloc is generally used incorrectly
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fs_vector.c?rev=a2c9bc656ed5&mark=60-62,
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fishsound_comments.c?rev=a2c9bc656ed5&mark=48-49,58-59,117-126,
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fishsound_comments.c?rev=a2c9bc656ed5&mark=48-49,58-59,117-126,186-188,231,487-489,496-497,
_fs_comment_add returns NULL on OOM, this isn't checked. Marking it isn't practical, and it's guarded by FS_ENCODE which hopefully isn't true for us. Sadly fish_sound_comments_decode isn't if FS_ENCODE, and so this is a problem.
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fishsound.c?rev=a2c9bc656ed5&mark=107-109,119
showing comments crashing is too hard, but the init method can fail and should be checked
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fishsound_speex.c?rev=a2c9bc656ed5&mark=397-399,416-417,598-599,614-614,696-698
http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/libfishsound/src/libfishsound/fishsound_flac.c?rev=a2c9bc656ed5&mark=171-176,176-181,283-284,289,306,356-357,374-375,465-469,505-509,518-519,538-539,570-575,603-606,740-742,
Flags: blocking1.9.1?
Updated•16 years ago
|
Whiteboard: [sg:investigate]
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
Comment 1•16 years ago
|
||
these are now fixed in upstream svn.annodex.net/libfishsound/trunk
Changesets: 3849, 3851, 3853, 3854:
http://trac.annodex.net/changeset/3849
http://trac.annodex.net/changeset/3851
http://trac.annodex.net/changeset/3853
http://trac.annodex.net/changeset/3854
afaiu. flac, speex and all encode support is not enabled in the firefox build, but these are also fixed in the above changesets. Please test/apply. (Probably
easiest to just update to this trunk).
Assignee | ||
Comment 2•16 years ago
|
||
Updates to libfishsound svn tip to get changesets identified in comment 1. Requires bug 477899 to be applied first.
Assignee: nobody → chris.double
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•15 years ago
|
||
Update to latest libfishsound git revision. Pulls in fixes for issues identified. Now that bug 477899 is fixed and landed (as mentioned in comment 2) this should resolve this bug when landed.
Attachment #365112 -
Attachment is obsolete: true
Updated•15 years ago
|
Whiteboard: [sg:investigate] → [sg:audit]
Comment 4•15 years ago
|
||
Bug 511584 updated libfishsound to 20b5cdf6fe38f6 on all branches, so we can close this.
Updated•10 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•