[vorbis-dev] PATCH: Falling off the end of linked lists.
Kenneth C. Arnold
kcarnold at yahoo.com
Mon Jun 19 08:16:03 PDT 2000
On Mon, Jun 19, 2000 at 07:58:43AM -0700, volsung at asu.edu wrote:
> [I'm still poking around in vorbis-tools. Here's another trivial patch.]
>
> In ogg123.c, the function get_stream goes down a linked list looking for the
> nth stream. Currently it will run off the end of the list and dereference the
> NULL pointer if the list is smaller than n. Attached is a patch to check for
> a null list and abort.
Just as soon as I figure out how to commit stuff ... that function gets an
#if 0 around it, because it is replaced by a function with a slightly different
purpose (to make buffering easier when I get to that). I don't think the new
function has such bugs.
Kenneth
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
More information about the Vorbis-dev
mailing list