Commit 0908161b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dwrite: Avoid memcpy source overflow in GetFontAxisValues.

parent 5f981c37
......@@ -7039,7 +7039,7 @@ static HRESULT WINAPI fontfacereference1_GetFontAxisValues(IDWriteFontFaceRefere
if (value_count < reference->axis_values_count)
return E_NOT_SUFFICIENT_BUFFER;
memcpy(axis_values, reference->axis_values, value_count * sizeof(*axis_values));
memcpy(axis_values, reference->axis_values, reference->axis_values_count * sizeof(*axis_values));
return S_OK;
}
......
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