Commit df01ef80 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

mf/tests: Increase buffer to prevent stack corruption.

init_dmo_media_type_video uses head + extra bytes memory, and with MEDIASUBTYPE_RGB8 the extra bytes are already 1024. This leads to stack corruption.
parent 911a0c60
......@@ -1450,7 +1450,7 @@ static void check_dmo_get_output_size_info_video_(int line, IMediaObject *dmo,
{
DWORD size, alignment, expected_size;
DMO_MEDIA_TYPE *type;
char buffer[1024];
char buffer[2048];
HRESULT hr;
type = (void *)buffer;
......@@ -6071,7 +6071,7 @@ static void test_wmv_decoder_dmo_input_type(void)
};
DMO_MEDIA_TYPE *good_input_type, *bad_input_type, type;
char buffer_good_input[1024], buffer_bad_input[1024];
char buffer_good_input[2048], buffer_bad_input[2048];
const GUID *input_subtype = input_subtypes[0];
LONG width = 16, height = 16;
VIDEOINFOHEADER *header;
......@@ -6326,7 +6326,7 @@ static void test_wmv_decoder_dmo_input_type(void)
static void test_wmv_decoder_dmo_output_type(void)
{
char buffer_good_output[1024], buffer_bad_output[1024], buffer_input[1024];
char buffer_good_output[2048], buffer_bad_output[2048], buffer_input[2048];
DMO_MEDIA_TYPE *good_output_type, *bad_output_type, *input_type, type;
const GUID* input_subtype = &MEDIASUBTYPE_WMV1;
LONG width = 16, height = 16;
......@@ -6572,7 +6572,7 @@ static void test_wmv_decoder_media_object(void)
IMediaObject *media_object;
DMO_MEDIA_TYPE *type;
const BYTE *wmv_data;
char buffer[1024];
char buffer[2048];
HRESULT hr;
ULONG ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment