https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115088
Revision: 115088
Author: vvv
Date: 2012-04-30 12:39:01 +0000 (Mon, 30 Apr 2012)
Log Message:
-----------
Actually set allowed_globals to NULL. Otherwise it tries to double-free it,
causing PHP to crash.
Modified Paths:
--------------
trunk/php/luasandbox/library.c
Modified: trunk/php/luasandbox/library.c
===================================================================
--- trunk/php/luasandbox/library.c 2012-04-30 08:32:37 UTC (rev 115087)
+++ trunk/php/luasandbox/library.c 2012-04-30 12:39:01 UTC (rev 115088)
@@ -152,6 +152,7 @@
if (g->allowed_globals) {
zend_hash_destroy(g->allowed_globals);
pefree(g->allowed_globals, 1);
+ g->allowed_globals = NULL;
}
}
/* }}} */
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs