Commit 0d57ff3d authored by Xiaoshan Sun's avatar Xiaoshan Sun Committed by Alexandre Julliard

comctl32/dsa: Handle overflow in DSA_InsertItem().

parent 430108c9
......@@ -267,6 +267,9 @@ INT WINAPI DSA_InsertItem (HDSA hdsa, INT nIndex, LPVOID pSrc)
nNewItems = hdsa->nMaxCount + hdsa->nGrow;
nSize = hdsa->nItemSize * nNewItems;
if (nSize / hdsa->nItemSize != nNewItems)
return -1;
lpTemp = ReAlloc (hdsa->pData, nSize);
if (!lpTemp)
return -1;
......
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