icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -416,10 +416,15 @@ void FileReader::ReadFileContent(Blob& aBlob, const nsAString& aCharset,
|
|||
// Binary Format doesn't need a post-processing of the data. Everything is
|
||||
// written directly into mResult.
|
||||
if (mDataFormat != FILE_AS_BINARY) {
|
||||
CheckedInt<size_t> size(mTotal);
|
||||
if (!size.isValid()) {
|
||||
aRv.Throw(NS_ERROR_OUT_OF_MEMORY);
|
||||
return;
|
||||
}
|
||||
if (mDataFormat == FILE_AS_ARRAYBUFFER) {
|
||||
mFileData = js_pod_malloc<char>(mTotal);
|
||||
mFileData = js_pod_malloc<char>(size.value());
|
||||
} else {
|
||||
mFileData = (char*)malloc(mTotal);
|
||||
mFileData = (char*)malloc(size.value());
|
||||
}
|
||||
|
||||
if (!mFileData) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue