[vlc-commits] commit: lua_demux: fix a potential read of uninitialized value ( thanks to JoungEunKim on the forum). ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Sun Sep 26 12:16:23 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Sep 26 11:32:18 2010 +0200| [939ac41de550646f2562d875deacf3005ec8cdfb] | committer: Rémi Duraffort
lua_demux: fix a potential read of uninitialized value (thanks to JoungEunKim on the forum).
(cherry picked from commit 28ad9041168d7e09b58705ad1f885b068b014208)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=939ac41de550646f2562d875deacf3005ec8cdfb
---
modules/misc/lua/demux.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/modules/misc/lua/demux.c b/modules/misc/lua/demux.c
index 3202675..010c25e 100644
--- a/modules/misc/lua/demux.c
+++ b/modules/misc/lua/demux.c
@@ -209,13 +209,9 @@ int Import_LuaPlaylist( vlc_object_t *p_this )
demux_t *p_demux = (demux_t *)p_this;
int ret;
- p_demux->p_sys = (demux_sys_t*)malloc( sizeof( demux_sys_t ) );
+ p_demux->p_sys = calloc( 1, sizeof( demux_sys_t ) );
if( !p_demux->p_sys )
- {
return VLC_ENOMEM;
- }
-
- p_demux->p_sys->psz_filename = NULL;
p_demux->pf_control = Control;
p_demux->pf_demux = Demux;
More information about the vlc-commits
mailing list