Make out-of-memory in computeHash fatal
This commit is contained in:
parent
9ec9d8e423
commit
84eda17958
@ -82,7 +82,7 @@ std::string SGFile::computeHash()
|
||||
[](char* p) { free(p); }};
|
||||
|
||||
if (!buf) {
|
||||
SG_LOG(SG_IO, SG_ALERT, "Failed to malloc buffer for SHA1 check");
|
||||
throw sg_exception("Malloc of SHA buffer failed");
|
||||
}
|
||||
|
||||
size_t readLen;
|
||||
|
Loading…
Reference in New Issue
Block a user