[vlc-commits] demux: tta: check stream_read return value
Francois Cartegnie
git at videolan.org
Thu Mar 23 21:11:41 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 23 21:09:46 2017 +0100| [bfd8c6f4a13e5762c399111edd937c68032041fc] | committer: Francois Cartegnie
demux: tta: check stream_read return value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bfd8c6f4a13e5762c399111edd937c68032041fc
---
modules/demux/tta.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/tta.c b/modules/demux/tta.c
index 98c7ff0..d55962f 100644
--- a/modules/demux/tta.c
+++ b/modules/demux/tta.c
@@ -164,7 +164,8 @@ static int Open( vlc_object_t * p_this )
p_fullheader += 4;
}
- vlc_stream_Read( p_demux->s, p_fullheader, 4 ); /* CRC */
+ if( 4 != vlc_stream_Read( p_demux->s, p_fullheader, 4 ) ) /* CRC */
+ goto error;
p_fullheader += 4;
p_sys->p_es = es_out_Add( p_demux->out, &fmt );
More information about the vlc-commits
mailing list