changeset 35222:27640f4f0479

Actually bail out when we detect that we would run outside the array, instead of going a ahead and doing it anyway.
author reimar
date Wed, 31 Oct 2012 20:41:07 +0000
parents 93337793866d
children 425467b5be98
files libmpdemux/demux_ty_osd.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 )