[Icecast] ices-0.4 coredumps

bedlam bedlam404 at gmail.com
Sun Apr 17 18:59:58 UTC 2005


src/stream.c declares two vars
  static int16_t left[INPUT_BUFSIZ * 45];
  static int16_t right[INPUT_BUFSIZ * 45];

I found some mp3 that return more than INPUT_BUFSIZ * 45 samples and
cause ices to coredump, exept if a test is made on stream.c:{209,
211}.

stream.c:209:
if (decode)
    if ((samples = ices_reencode_decode (ibuf, len, sizeof (left),
left, right)) > INPUT_BUFSIZ * 45) {
        len = sample = INPUT_BUFSIZ * 45;
     }

stream.c:211:
if ((len = samples = source->readpcm (source, sizeof (left), left,
right)) >  INPUT_BUFSIZ * 45) {
len = sample = INPUT_BUFSIZ * 45;
}

regards



More information about the Icecast mailing list