# HG changeset patch # User reimar # Date 1351716067 0 # Node ID 27640f4f0479f4ddbd1898a96b65f17e17584920 # Parent 93337793866dc061f38640d59d7cf7dcdbbcef58 Actually bail out when we detect that we would run outside the array, instead of going a ahead and doing it anyway. diff -r 93337793866d -r 27640f4f0479 libmpdemux/demux_ty_osd.c --- a/libmpdemux/demux_ty_osd.c Wed Oct 31 20:29:28 2012 +0000 +++ b/libmpdemux/demux_ty_osd.c Wed Oct 31 20:41:07 2012 +0000 @@ -500,6 +500,7 @@ if ( ty_XDSAddLine == XDS_BUFFER_LENGTH ) { mp_msg( MSGT_DEMUX, MSGL_ERR, "XDS Buffer would have been blown\n" ); + return; } if ( ty_XDS_Display[ ty_XDSAddLine ] != 0 )