[vlc-commits] demux: avi: fix unchecked alloc
Francois Cartegnie
git at videolan.org
Sun Nov 13 21:01:05 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 13 20:21:37 2016 +0100| [2e078529974050296de06bb4aab7b854b5a80a4c] | committer: Francois Cartegnie
demux: avi: fix unchecked alloc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e078529974050296de06bb4aab7b854b5a80a4c
---
modules/demux/avi/avi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 97ded16..9642abc 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -294,6 +294,8 @@ static int Open( vlc_object_t * p_this )
/* Initialize input structures. */
p_sys = p_demux->p_sys = calloc( 1, sizeof(demux_sys_t) );
+ if( unlikely(!p_sys) )
+ return VLC_EGENERIC;
p_sys->b_odml = false;
p_sys->track = NULL;
p_sys->meta = NULL;
More information about the vlc-commits
mailing list