[MPlayer-dev-eng] codecs.conf parsing crash

Ivan Kalvatchev iive at yahoo.com
Thu Dec 20 16:33:03 CET 2001


--- Arpi <arpi at thot.banki.hu> wrote:
> Hi,
> 
> > Hi there,
> > 	I plugged the following sample into the top of my
> local
> > codecs.conf file:
> > 
> > videocodec random
> >   info "Random Codec"
> >   status buggy
> >   fourcc RNDM
> >   driver random
> >   out BGR32
> > 
> > And this is what happens:
> > 
> > MPlayer CVS-011215-17:22-2.95.3 (C) 2000-2001
> Arpad Gereoffy (see DOCS!)
> > 
> > CPU vendor name: AuthenticAMD  max cpuid level: 1
> > CPU: Advanced Micro Devices K6-2 (Type: 5,
> Stepping: 12)
> > extended cpuid-level: 5
> > CPUflags: Type: 5 MMX: 1 MMX2: 0 3DNow: 1 3DNow2:
> 0 SSE: 0 SSE2: 0
> > Reading /home/melanson/.mplayer/codecs.conf: parse
> error at line 13
> > Segmentation fault
> 
> rtfm docs/bugreports.html ?
> at least, compile with -g and show gdb backtrace...
> 
> we cannot reproduce it.
> 
> 
> A'rpi / Astral & ESP-team
> 

I was able to reproduce it. It segfaults at
codec-cfg.c:483
if (!strcmp(token[0], (*codecsp)[i].name)) {
it gets second argument as NULL and segfaults in
strcmp.
I have Slackware 8.0 with glibc 2.2.3, that's way it
works for arpi and segfault for Mike.


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com



More information about the MPlayer-dev-eng mailing list