[MPlayer-dev-eng] [PATCH] to free_demuxer to avoid glibc "double free or corruption" crash
Ivan Kalvachev
ikalvachev at gmail.com
Mon Aug 22 16:51:11 CEST 2005
2005/8/22, Mark James <mrj at bigpond.net.au>:
> Attached patch to libmpdemux/demuxer.c in MPlayer-20050806 fixes
> glibc-initiated crash with a "double free or corruption" error
> when the demuxer is a demuxer-demuxer.
>
> Test of demuxer type was being made after the demuxer was closed
> and free-d. Type test is now made prior to the free, and saved
> test result is used after the free.
Somehow I get feeling that your patch may cause memory leak. I haven't
investigated.
I think Reimar had proposed an better patch in thread with subject
"[PATCH] fix bug in free_demuxer".
Please test it.
Ivan
More information about the MPlayer-dev-eng
mailing list