mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
Precent overflow of this->m_sVhdr->bmiHeader buffer, may have been
exploitable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22205 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2ea691d6f3
commit
656c22ca16
@ -114,6 +114,7 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD
|
|||||||
|
|
||||||
this->iv.m_bh = malloc(bihs);
|
this->iv.m_bh = malloc(bihs);
|
||||||
memcpy(this->iv.m_bh, format, bihs);
|
memcpy(this->iv.m_bh, format, bihs);
|
||||||
|
this->iv.m_bh->biSize = bihs;
|
||||||
|
|
||||||
this->iv.m_State = STOP;
|
this->iv.m_State = STOP;
|
||||||
//this->iv.m_pFrame = 0;
|
//this->iv.m_pFrame = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user