mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 20:50:42 +01:00
Use nothrow new when allocating memory for zip file data
This commit is contained in:
parent
85bda40d95
commit
e34e9142ee
@ -33,7 +33,7 @@ class CefZipFile : public CefZipArchive::File {
|
||||
CefZipFile& operator=(const CefZipFile&) = delete;
|
||||
|
||||
bool Initialize(size_t data_size) {
|
||||
data_.reset(new unsigned char[data_size]);
|
||||
data_.reset(new (std::nothrow) unsigned char[data_size]);
|
||||
if (data_) {
|
||||
data_size_ = data_size;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user