wasm: validate empty data (#790)

This commit is contained in:
Michal Maciola 2021-09-09 10:45:58 +02:00 committed by GitHub
parent b294a71613
commit e91dcdb0de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,12 @@ public:
mErrorMsg = "None";
if (!mSwCanvas) {
mErrorMsg = "Canvas is NULL";
mErrorMsg = "Canvas is NULL";
return false;
}
if (data.empty()) {
mErrorMsg = "Data is empty";
return false;
}