[MPlayer-dev-eng] [PATCH] GUI: Fix segfault after end of file

Hans-Dieter Kosch hdkosch at kabelbw.de
Mon Nov 19 00:08:44 CET 2012


Hi all,

attached patch fixes a segmentation fault in the GUI after end of file.


File:

gui/interface.c


Changelog:

Fix segfault in GUI after end of file:

'guiInfo.sh_video = NULL' must be set before 'uiEventHandling(ivRedraw, 1)'
(not after), since the contents of '*guiInfo.sh_video' are undefined at this
point; otherwise, 'Translate()' in 'gui/ui/render.c' segfaults (finally in
strlen() from libc.so) when trying to retrieve the codec name (string pointer
out of bounds).


Greetings,
Hans-Dieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gui_interface.c.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20121119/dce9bd7a/attachment.bin>


More information about the MPlayer-dev-eng mailing list