[vlc-commits] aiff: handle I/O error

Rémi Denis-Courmont git at videolan.org
Fri Jul 7 22:58:02 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul  7 23:50:47 2017 +0300| [19f591757887d853df752a70409e885376bc7a92] | committer: Rémi Denis-Courmont

aiff: handle I/O error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19f591757887d853df752a70409e885376bc7a92
---

 modules/demux/aiff.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/aiff.c b/modules/demux/aiff.c
index e100cb41a1..886412ca24 100644
--- a/modules/demux/aiff.c
+++ b/modules/demux/aiff.c
@@ -114,7 +114,8 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
 
     /* skip aiff header */
-    vlc_stream_Read( p_demux->s, NULL, 12 );
+    if( vlc_stream_Read( p_demux->s, NULL, 12 ) < 12 )
+        return VLC_EGENERIC;
 
     /* Fill p_demux field */
     DEMUX_INIT_COMMON(); p_sys = p_demux->p_sys;



More information about the vlc-commits mailing list