changeset 22186:c6edb6c59a7a

Precent overflow of this->m_sVhdr->bmiHeader buffer, may have been exploitable. Reported by Moritz Jodeit
author rtogni
date Sun, 11 Feb 2007 17:55:49 +0000
parents 80ff3962cef4
children 88b36fd17976
files loader/dmo/DMO_VideoDecoder.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dmo/DMO_VideoDecoder.c	Sun Feb 11 17:54:18 2007 +0000
+++ b/loader/dmo/DMO_VideoDecoder.c	Sun Feb 11 17:55:49 2007 +0000
@@ -119,6 +119,7 @@
      
         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;