Commit df3997de authored by Laurent Aimar's avatar Laurent Aimar

Fixed invalid read in ASF_ReadObject_Index (asf).

parent 6cceda06
...@@ -319,7 +319,7 @@ static int ASF_ReadObject_Index( stream_t *s, asf_object_t *p_obj ) ...@@ -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 ) 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_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; return VLC_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment