GNOME Bugzilla – Bug 356004
[mpeg2dec] memory corruption
Last modified: 2006-09-15 16:15:06 UTC
Hi, I got some problem with a particular mpeg file and my own application. It was a crash that occurs sometime. playing with gst-launch is fine. Valgrind show me lots of invalid write. I managed to track down the problem. There is a bug in the init_dummybuf function. I will post the patch. It may be related to bug 327350 since the gdb output look familiar to what I was getting with this problem.
Created attachment 72809 [details] [review] patch for this bug This patch for the init_dummybuf function does exactly what is already (correclty) done in the gst_mpeg2dec_alloc_buffer function regarding buf[2] pointer.
yep, thanks, very correct. Fixed in CVS: Patch by: Yves Lefebvre <ivanohe at abacom dot com> * ext/mpeg2dec/gstmpeg2dec.c: (init_dummybuf): Fix initialisation dummy buffer, the offsets are relative to the start of the buffers. Fixes #356004.