mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
Precent overflow of this->m_sVhdr->bmiHeader buffer, may have been
exploitable. Reported by Moritz Jodeit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22204 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f85ff89ea
commit
2ea691d6f3
@ -119,6 +119,7 @@ DMO_VideoDecoder * DMO_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHE
|
||||
|
||||
this->iv.m_bh = malloc(bihs);
|
||||
memcpy(this->iv.m_bh, format, bihs);
|
||||
this->iv.m_bh->biSize = bihs;
|
||||
|
||||
this->iv.m_State = STOP;
|
||||
//this->iv.m_pFrame = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user