mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Fixed: DSMF loader wrote outside filename array's bounds
This commit is contained in:
parent
3670acbe63
commit
4406578522
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ static int it_riff_dsmf_process_sample( IT_SAMPLE * sample, const unsigned char
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
memcpy( sample->filename, data, 13 );
|
memcpy( sample->filename, data, 13 );
|
||||||
sample->filename[ 14 ] = 0;
|
sample->filename[ 13 ] = 0;
|
||||||
|
|
||||||
flags = data[ 13 ] | ( data[ 14 ] << 8 );
|
flags = data[ 13 ] | ( data[ 14 ] << 8 );
|
||||||
sample->default_volume = data[ 15 ];
|
sample->default_volume = data[ 15 ];
|
||||||
|
|
Loading…
Reference in a new issue