Ticket #1556: fix-speex-decoder-bof.patch

File fix-speex-decoder-bof.patch, 500 bytes (added by Eren, 3 months ago)

Fix bof in modules/codec/speex.c

  • modules/codec/speex.c

    old new  
    332332        msg_Err( p_dec, "cannot read Speex header" ); 
    333333        return VLC_EGENERIC; 
    334334    } 
    335     if( p_header->mode >= SPEEX_NB_MODES
     335    if( p_header->mode >= SPEEX_NB_MODES || p_header->mode < 0
    336336    { 
    337337        msg_Err( p_dec, "mode number %d does not (yet/any longer) exist in " 
    338338                 "this version of libspeex.", p_header->mode );