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

git version control git at videolan.org
Sat Feb 27 10:51:49 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 27 10:21:58 2010 +0100| [df3997deea7782189d100a4c2270d95ef37a2bce] | committer: Laurent Aimar 

Fixed invalid read in ASF_ReadObject_Index (asf).

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

 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 4b49222..65b05b0 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-devel mailing list