[Vm-dev] [commit][3712] JMM Fix crash in retain with filepath being
nil, add check for bad data SQK-47
commits at squeakvm.org
commits at squeakvm.org
Wed May 11 18:20:55 UTC 2016
Revision: 3712
Author: johnmci
Date: 2016-05-11 11:20:55 -0700 (Wed, 11 May 2016)
Log Message:
-----------
JMM Fix crash in retain with filepath being nil, add check for bad data SQK-47
Modified Paths:
--------------
branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakFileDirectoryInterface.m
Modified: branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakFileDirectoryInterface.m
===================================================================
--- branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakFileDirectoryInterface.m 2016-05-11 18:05:53 UTC (rev 3711)
+++ branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakFileDirectoryInterface.m 2016-05-11 18:20:55 UTC (rev 3712)
@@ -85,6 +85,10 @@
NSDictionary *fileAttributes;
NSError *error;
int isSymlink;
+
+ if (!filePath) { //SQK-47
+ return BAD_PATH;
+ }
fileAttributes = [fileMgr attributesOfItemAtPath: filePath error: &error];
if (!fileAttributes) {
return BAD_PATH;
More information about the Vm-dev
mailing list