Image: __fromBytes() null and length check to avoid EXC_BAD_ACCESS lime::PNG::Decode (closes #1894)
This commit is contained in:
@@ -1483,6 +1483,11 @@ class Image
|
||||
__fromBase64(Base64.encode(bytes), type, onload);
|
||||
return true;
|
||||
#elseif (lime_cffi && !macro)
|
||||
if (bytes == null || bytes.length == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var imageBuffer:ImageBuffer = null;
|
||||
|
||||
#if !cs
|
||||
|
||||
Reference in New Issue
Block a user