[vlc-commits] commit: Fixed invalid read in ASF_ReadObject_Index (asf). (Laurent Aimar )

git at videolan.org git at videolan.org
Thu Apr 15 18:54:44 CEST 2010


vlc/vlc-1.0 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 27 10:21:58 2010 +0100| [fd55d8a489be7739e756396856a5cadacbfbdf63] | committer: Rémi Denis-Courmont 

Fixed invalid read in ASF_ReadObject_Index (asf).

(cherry picked from commit df3997deea7782189d100a4c2270d95ef37a2bce)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/demux/asf/libasf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index 740b434..4ffabcb 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -319,7 +319,7 @@ static int ASF_ReadObject_Index( stream_t *s, asf_object_t *p_obj )
     for( i = 0, p_peek += 56; i < p_index->i_index_entry_count; i++, p_peek += 6 )
     {
         p_index->index_entry[i].i_packet_number = GetDWLE( p_peek );
-        p_index->index_entry[i].i_packet_count = GetDWLE( p_peek + 4 );
+        p_index->index_entry[i].i_packet_count = GetWLE( p_peek + 4 );
     }
 
     return VLC_SUCCESS;



More information about the vlc-commits mailing list