[Vm-dev] clang analyzer detects potential usage of a null pointer

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Oct 29 01:00:22 UTC 2015


Skipped content of type multipart/alternative-------------- next part --------------
Index: platforms/iOS/vm/OSX/sqMacUnixExternalPrims.m
===================================================================
--- platforms/iOS/vm/OSX/sqMacUnixExternalPrims.m	(revision 3478)
+++ platforms/iOS/vm/OSX/sqMacUnixExternalPrims.m	(working copy)
@@ -162,6 +162,7 @@
 		if (handle == null) {
 			char * why = dlerror();
 			dprintf((stderr, "ioLoadModule(<intrinsic>): %s\n", why));
+            return NULL;
 		} else {
 			dprintf((stderr, "loaded: <intrinsic>\n"));
 			return handle;


More information about the Vm-dev mailing list