{"action":"created","issue":{"url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader/issues/12","repository_url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader","labels_url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader/issues/12/comments","events_url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader/issues/12/events","html_url":"https://github.com/ClickSimply/cpp-wasm-loader/issues/12","id":354628549,"node_id":"MDU6SXNzdWUzNTQ2Mjg1NDk=","number":12,"title":"Memory manager writes over globals","user":{"login":"d07RiV","id":3448203,"node_id":"MDQ6VXNlcjM0NDgyMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/3448203?v=4","gravatar_id":"","url":"https://api.github.com/users/d07RiV","html_url":"https://github.com/d07RiV","followers_url":"https://api.github.com/users/d07RiV/followers","following_url":"https://api.github.com/users/d07RiV/following{/other_user}","gists_url":"https://api.github.com/users/d07RiV/gists{/gist_id}","starred_url":"https://api.github.com/users/d07RiV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d07RiV/subscriptions","organizations_url":"https://api.github.com/users/d07RiV/orgs","repos_url":"https://api.github.com/users/d07RiV/repos","events_url":"https://api.github.com/users/d07RiV/events{/privacy}","received_events_url":"https://api.github.com/users/d07RiV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T08:41:05Z","updated_at":"2018-08-28T13:02:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Memory allocation starts at address 0, which eventually writes over constants and other global data."},"comment":{"url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader/issues/comments/416575742","html_url":"https://github.com/ClickSimply/cpp-wasm-loader/issues/12#issuecomment-416575742","issue_url":"https://api.github.com/repos/ClickSimply/cpp-wasm-loader/issues/12","id":416575742,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjU3NTc0Mg==","user":{"login":"ClickSimply","id":14365337,"node_id":"MDQ6VXNlcjE0MzY1MzM3","avatar_url":"https://avatars3.githubusercontent.com/u/14365337?v=4","gravatar_id":"","url":"https://api.github.com/users/ClickSimply","html_url":"https://github.com/ClickSimply","followers_url":"https://api.github.com/users/ClickSimply/followers","following_url":"https://api.github.com/users/ClickSimply/following{/other_user}","gists_url":"https://api.github.com/users/ClickSimply/gists{/gist_id}","starred_url":"https://api.github.com/users/ClickSimply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClickSimply/subscriptions","organizations_url":"https://api.github.com/users/ClickSimply/orgs","repos_url":"https://api.github.com/users/ClickSimply/repos","events_url":"https://api.github.com/users/ClickSimply/events{/privacy}","received_events_url":"https://api.github.com/users/ClickSimply/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T13:02:56Z","updated_at":"2018-08-28T13:02:56Z","author_association":"OWNER","body":"I haven't ran into this issue in my uses, I can think of a few solutions but not sure where/how you're running into this...\r\n\r\nIf the memory is setup when the wasm is initialized you can simply run `.scan()` on the memory class to have it read the memory and mark the occupied space.\r\n\r\nThe only other thing that comes to mind is setting some kind of initialization option allowing you to set the first X bytes of the memory as occupied.  Maybe a new method on the memory class like `.mark(bytes: number)`.\r\n\r\nLet me know what you think.\r\n\r\n"}}
{"actor":{"display_login":"ClickSimply"}}