Changeset 05278162c64a1c402aa18dd5fccbd835e2a57aaf

Show
Ignore:
Timestamp:
03/23/08 23:27:26 (6 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1206311246 +0000
git-parent:

[7bbc2548f92696457164ebf7f4f86dc815ef80c7]

git-author:
Rafaël Carré <funman@videolan.org> 1206311246 +0000
Message:

Fix a buffer overflow

Reported by Drew Yao

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/subtitles/subsdec.c

    r6339478 r0527816  
    573573static char *CreateHtmlSubtitle( char *psz_subtitle ) 
    574574{ 
    575     char    psz_tagStack[ 100 ]; 
     575    char    psz_tagStack[ ( strlen( psz_subtitle ) / 3 ) + 1 ]; 
    576576    size_t  i_buf_size     = strlen( psz_subtitle ) + 100; 
    577577    char   *psz_html_start = malloc( i_buf_size );