mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 373900: Add a check to nsMultiMixedConv. r=honzab
This commit is contained in:
parent
c55ae25a78
commit
fc1645a78b
@ -485,6 +485,8 @@ nsMultiMixedConv::OnDataAvailable(nsIRequest *request, nsISupports *context,
|
||||
// fill buffer
|
||||
{
|
||||
bufLen = count + mBufLen;
|
||||
NS_ENSURE_TRUE((bufLen >= count) && (bufLen >= mBufLen),
|
||||
NS_ERROR_FAILURE);
|
||||
buffer = (char *) malloc(bufLen);
|
||||
if (!buffer)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user