Changeset 05278162c64a1c402aa18dd5fccbd835e2a57aaf
- 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
| r6339478 |
r0527816 |
|
| 573 | 573 | static char *CreateHtmlSubtitle( char *psz_subtitle ) |
|---|
| 574 | 574 | { |
|---|
| 575 | | char psz_tagStack[ 100 ]; |
|---|
| | 575 | char psz_tagStack[ ( strlen( psz_subtitle ) / 3 ) + 1 ]; |
|---|
| 576 | 576 | size_t i_buf_size = strlen( psz_subtitle ) + 100; |
|---|
| 577 | 577 | char *psz_html_start = malloc( i_buf_size ); |
|---|