git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc7ad6
)
A small malloc check.
author
Laurent Aimar
<fenrir@videolan.org>
Fri, 29 Jun 2007 23:50:39 +0000
(23:50 +0000)
committer
Laurent Aimar
<fenrir@videolan.org>
Fri, 29 Jun 2007 23:50:39 +0000
(23:50 +0000)
modules/demux/subtitle.c
patch
|
blob
|
history
diff --git
a/modules/demux/subtitle.c
b/modules/demux/subtitle.c
index
2af44ef
..
a8524a6
100644
(file)
--- a/
modules/demux/subtitle.c
+++ b/
modules/demux/subtitle.c
@@
-1190,6
+1190,8
@@
static int ParseMPL2( demux_t *p_demux, subtitle_t *p_subtitle )
return VLC_EGENERIC;
psz_text = malloc( strlen(s) + 1 );
+ if( !psz_text )
+ return VLC_ENOMEM;
i_start = 0;
i_stop = 0;