Hi,

Somebody can see this bug report and the fix ?

The problem : 'tcdemux -A' crash.

Christian

,----
| Christian Marillat wrote:
| > Arno Schuring <aelschur...@hotmail.com> writes:
| > 
| > [...]
| > 
| >> ok, wrong example. Sorry, I should have been more explicit. This       
happens
| >> with /any/ input file, not just with /dev/null. But I figured it would
| >> be better to supply a minimal testcase.
| > 
| > Forwarded to the  transcode user mailing list.
| > 
| 
| Thanks. I still haven't been able to compile my own, but this is the
| backtrace without debug symbols:
| 
| #0  0xb7e12a8b in ?? () from /lib/i686/cmov/libc.so.6
| #1  0xb7e127f0 in strtol () from /lib/i686/cmov/libc.so.6
| #2  0x0804a1b8 in ?? ()
| #3  0xb7df8b55 in __libc_start_main () from /lib/i686/cmov/libc.so.6
| #4  0x08049501 in ?? ()
| 
| Since it's such a short backtrace, I decided to look into the source
| code; I'm not really sure, but I believe the bug is caused by line 218
| of tcdemux.c (see
| http://hg.berlios.de/repos/tcforge/file/0070a9c4a4c4/import/tcdemux.c ).
| The str variable is initialized at NULL but is never assigned until
| *after* the call to strtol.
| 
| I believe the fix would be to insert the line
| 
| str = optarg;
| 
| before the while(1).
`----

Reply via email to