https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115100

Revision: 115100
Author:   vvv
Date:     2012-05-01 12:53:53 +0000 (Tue, 01 May 2012)
Log Message:
-----------
Fix broken memory allocator in LuaJIT 64-bit mode.

Modified Paths:
--------------
    trunk/php/luasandbox/alloc.c

Modified: trunk/php/luasandbox/alloc.c
===================================================================
--- trunk/php/luasandbox/alloc.c        2012-05-01 11:21:59 UTC (rev 115099)
+++ trunk/php/luasandbox/alloc.c        2012-05-01 12:53:53 UTC (rev 115100)
@@ -44,7 +44,7 @@
        // function pointer is unchanged before destroying the underlying 
        // allocator. If the allocator has been changed, the mmap is not freed.
 #ifdef LUASANDBOX_LJ_64
-       lua_setallocf(alloc->state, alloc->old_alloc, alloc->old_alloc_ud);
+       lua_setallocf(L, alloc->old_alloc, alloc->old_alloc_ud);
 #endif
 
        lua_close(L);


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to