{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":299255836,"defaultBranch":"master","name":"php-luasandbox","ownerLogin":"alex-mashin","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-09-28T09:20:11.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/11148653?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1659245126.60592","currentOid":""},"activityList":{"items":[{"before":"26cad2075c93fad80550f8e7a1bbd52826f8c851","after":"f08e80fb571669e084a929cd02d5cb24a10bf765","ref":"refs/heads/master","pushedAt":"2024-07-24T03:58:26.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Backport changes from MediaWiki.","shortMessageHtmlLink":"Backport changes from MediaWiki."}},{"before":"3c7ae0d4651c68112c81583793b21dc49ba60108","after":"26cad2075c93fad80550f8e7a1bbd52826f8c851","ref":"refs/heads/master","pushedAt":"2024-07-03T17:41:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Remove IS_CALLABLE_CHECK_SILENT","shortMessageHtmlLink":"Remove IS_CALLABLE_CHECK_SILENT"}},{"before":"c2f880833ff86e773ce0d1d50632e9ceee57fe97","after":"3c7ae0d4651c68112c81583793b21dc49ba60108","ref":"refs/heads/master","pushedAt":"2024-07-03T17:37:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Repair","shortMessageHtmlLink":"Repair"}},{"before":"b2d6601462c0acf9f13e1c762ba3983916a80e61","after":"c2f880833ff86e773ce0d1d50632e9ceee57fe97","ref":"refs/heads/master","pushedAt":"2024-07-03T15:41:42.000Z","pushType":"push","commitsCount":7,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Run the GC more aggressively, especially as usage approaches the limit\n\n* Scale the GC pause downwards so that a GC run will be scheduled when\n the memory usage exceeds 90% of the limit.\n* Increase the step size by a factor of 10. In a production-like test\n case, this reduced the memory increase during the propagate phase\n from 5252KB to 821KB.\n\nAlso:\n\n* Zero-fill the allocated memory. This reduces the chance of exploitable\n security vulnerabilities, at a very small CPU cost.\n\nBug: T349462\nChange-Id: Icfe9400b36f1e0ec89f80b21ddf4f02ea3db028b","shortMessageHtmlLink":"Run the GC more aggressively, especially as usage approaches the limit"}},{"before":"c954dbbfac11af839a6463891e532c95fe7fadb2","after":"b2d6601462c0acf9f13e1c762ba3983916a80e61","ref":"refs/heads/master","pushedAt":"2024-07-02T03:26:14.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Backports","shortMessageHtmlLink":"Backports"}},{"before":"fe5b6b98a79bbaf760e4dfb70b475e61792e4c51","after":"c954dbbfac11af839a6463891e532c95fe7fadb2","ref":"refs/heads/master","pushedAt":"2023-07-18T02:54:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Fix segmentation fault when memory limit is exceeded in LuaSandbox init\n\nluasandbox_new() assigns standard object handlers only after it creates the sandbox state via luasandbox_newstate(). However, this uses the Zend allocator, and so may end up exceeding PHP's memory_limit. If this happens, the standard object handlers are left uninitialized and the process ends up in a segmentation fault during shutdown.\r\n\r\nAs a fix, immediately assign the handlers after initing the LuaSandbox object, and add a test for the case where PHP exceeds its memory limit while creating LuaSandbox objects.\r\n\r\nBug: https://phabricator.wikimedia.org/T322748\r\n\r\nBackport from https://gerrit.wikimedia.org/r/c/mediawiki/php/luasandbox/+/938925/","shortMessageHtmlLink":"Fix segmentation fault when memory limit is exceeded in LuaSandbox init"}},{"before":"68458bbe6808716c53e418e74ffe933afd9f56b7","after":"fe5b6b98a79bbaf760e4dfb70b475e61792e4c51","ref":"refs/heads/master","pushedAt":"2023-07-18T02:51:59.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"alex-mashin","name":"Alexander Mashin","path":"/alex-mashin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/11148653?s=80&v=4"},"commit":{"message":"Fix segmentation fault when memory limit is exceeded in LuaSandbox init\n\nluasandbox_new() assigns standard object handlers only after it creates the sandbox state via luasandbox_newstate(). However, this uses the Zend allocator, and so may end up exceeding PHP's memory_limit. If this happens, the standard object handlers are left uninitialized and the process ends up in a segmentation fault during shutdown.\r\n\r\nAs a fix, immediately assign the handlers after initing the LuaSandbox object, and add a test for the case where PHP exceeds its memory limit while creating LuaSandbox objects.\r\n\r\nBug: https://phabricator.wikimedia.org/T322748\r\n\r\nBackport from https://gerrit.wikimedia.org/r/c/mediawiki/php/luasandbox/+/938925/","shortMessageHtmlLink":"Fix segmentation fault when memory limit is exceeded in LuaSandbox init"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEh3_IJAA","startCursor":null,"endCursor":null}},"title":"Activity ยท alex-mashin/php-luasandbox"}