Closed Bug 468280 Opened 16 years ago Closed 16 years ago

Audit alloc failure in oggz annodex library

Categories

(Core :: Audio/Video, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: conrad)

References

()

Details

(Keywords: crash, fixed1.9.1, Whiteboard: [sg:investigate])

note that this code isn't consistent about oggz_malloc v malloc, i don't care as i'm not specifically looking for it, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_table.c?rev=79c023857355&mark=55-57,56,77-79,57,80#50 http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_read.c?rev=79c023857355&mark=261-262,263-264,#257 http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_comments.c?rev=79c023857355&mark=63-64,137-138,144-147,154-155,164-166,206-207, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_auto.c?rev=79c023857355&mark=438-440,491-493,556-559,679-680,822-828,949-951, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_vector.c?rev=79c023857355&mark=84-86, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz.c?rev=79c023857355&mark=98,203,315,356,108,206-207, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_io.c?rev=79c023857355&rev=186-187,196-198,221-223,246-248,271-273,296-298, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_dlist.c?rev=79c023857355&mark=56,67,58,61,59,65,96-98,108-110, http://mxr-test.konigsberg.mozilla.org/mozilla-central/source/media/liboggz/src/liboggz/oggz_write.c?rev=79c023857355&mark=310-311,316-318, note that realloc is generally used incorrectly (and especially in any case i've highlighted...)
Flags: blocking1.9.1?
Summary: Audit alloc failure in oggz xiph codec → Audit alloc failure in oggz annodex library
thanks, these should be fixed in upstream liboggz r3816, which checks for malloc failure and handles realloc failure. Also r3817 makes sure to use oggz_malloc/oggz_free consistently.
Assignee: nobody → conrad
Whiteboard: [sg:investigate]
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
The fixes mentioned in comment 4 will be picked up in bug 477899 which updates liboggz.
Bug 477899 has landed on mozilla-central.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Bug 477899 has landed on mozilla-1.9.1, fixing this bug.
Keywords: fixed1.9.1
Flags: wanted1.9.0.x-
Group: core-security
Depends on: 477899
You need to log in before you can comment on or make changes to this bug.