Skip to content

Commit fdbdd67

Browse files
committed
asf: Fix out of bound read
p_data is already offset by 64 bytes, so we need to propagate that offset to the boundary check CVE-2019-14776
1 parent d5a9fb5 commit fdbdd67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/demux/asf/asf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ static int DemuxInit( demux_t *p_demux )
11051105
{
11061106
GET_CHECKED( fmt.i_extra, __MIN( GetWLE( &p_data[16] ),
11071107
p_sp->i_type_specific_data_length -
1108-
sizeof( WAVEFORMATEX ) ),
1108+
sizeof( WAVEFORMATEX ) - 64),
11091109
INT_MAX, uint32_t );
11101110
fmt.p_extra = malloc( fmt.i_extra );
11111111
if ( fmt.p_extra )

0 commit comments

Comments
 (0)