From 656c22ca16c28fcd3a0498cef3078fb8cb351578 Mon Sep 17 00:00:00 2001 From: rtogni Date: Sun, 11 Feb 2007 17:57:02 +0000 Subject: [PATCH] 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 --- loader/dshow/DS_VideoDecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/dshow/DS_VideoDecoder.c b/loader/dshow/DS_VideoDecoder.c index de2e81b83d..248938dbf3 100644 --- a/loader/dshow/DS_VideoDecoder.c +++ b/loader/dshow/DS_VideoDecoder.c @@ -114,6 +114,7 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD 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;