{"action":"opened","issue":{"url":"https://api.github.com/repos/perl11/cperl/issues/108","repository_url":"https://api.github.com/repos/perl11/cperl","labels_url":"https://api.github.com/repos/perl11/cperl/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/perl11/cperl/issues/108/comments","events_url":"https://api.github.com/repos/perl11/cperl/issues/108/events","html_url":"https://github.com/perl11/cperl/issues/108","id":133524408,"number":108,"title":"PADSV -> CONST corrupts OpSLOT","user":{"login":"rurban","id":41809,"avatar_url":"https://avatars.githubusercontent.com/u/41809?v=3","gravatar_id":"","url":"https://api.github.com/users/rurban","html_url":"https://github.com/rurban","followers_url":"https://api.github.com/users/rurban/followers","following_url":"https://api.github.com/users/rurban/following{/other_user}","gists_url":"https://api.github.com/users/rurban/gists{/gist_id}","starred_url":"https://api.github.com/users/rurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rurban/subscriptions","organizations_url":"https://api.github.com/users/rurban/orgs","repos_url":"https://api.github.com/users/rurban/repos","events_url":"https://api.github.com/users/rurban/events{/privacy}","received_events_url":"https://api.github.com/users/rurban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-14T09:20:37Z","updated_at":"2016-02-14T09:20:37Z","closed_at":null,"body":"cperl converts a readonly pad to a const op in ck_pad, but does not check how big the allocation\r\nfor the original PADSV was, (it was certainly only a OP, not a SVOP), hence the slab allocator might get corrupted which such an optimization. even better, the coretest didn't catch this, only one test in Variable::Magic t/17-ctl.t in \"die in free callback at eval STRING 1a\".\r\n\r\nFix: always overallocate a PADSV by one, so that the CONST has room for the sv.\r\nreallocating the padsv to a SVOP in ck_pad makes not much sense to me.\r\n\r\n"}}