mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 373900: Add a check to nsMultiMixedConv. r=honzab
This commit is contained in:
parent
5e8f4fcbd9
commit
9282c23db2
@ -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