{"action":"opened","issue":{"url":"https://api.github.com/repos/jedisct1/libsodium.js/issues/139","repository_url":"https://api.github.com/repos/jedisct1/libsodium.js","labels_url":"https://api.github.com/repos/jedisct1/libsodium.js/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/jedisct1/libsodium.js/issues/139/comments","events_url":"https://api.github.com/repos/jedisct1/libsodium.js/issues/139/events","html_url":"https://github.com/jedisct1/libsodium.js/issues/139","id":300574731,"number":139,"title":"libsodium.js not working anymore on iOS since 11.2.2 due to meltdown/spectre","user":{"login":"tpetry","id":315686,"avatar_url":"https://avatars0.githubusercontent.com/u/315686?v=4","gravatar_id":"","url":"https://api.github.com/users/tpetry","html_url":"https://github.com/tpetry","followers_url":"https://api.github.com/users/tpetry/followers","following_url":"https://api.github.com/users/tpetry/following{/other_user}","gists_url":"https://api.github.com/users/tpetry/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetry/subscriptions","organizations_url":"https://api.github.com/users/tpetry/orgs","repos_url":"https://api.github.com/users/tpetry/repos","events_url":"https://api.github.com/users/tpetry/events{/privacy}","received_events_url":"https://api.github.com/users/tpetry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T10:34:18Z","updated_at":"2018-02-27T10:34:18Z","closed_at":null,"author_association":"NONE","body":"At the current time, libsodium.js on iOS 11.2.6 does not work. The functions throw an \"Out of bounds memory access\" error:\r\n```\r\nError: Out of bounds memory access (evaluating 'R.asm._free.apply(null,arguments)')\r\nwasm function: 31\r\nwasm function\r\n_free\r\n_free — libsodium-sumo.min.js:5:279071\r\nl — libsodium-wrappers.min.js:5:2597\r\nd — libsodium-wrappers.min.js:5:2648\r\nut — libsodium-wrappers.min.js:5:45636\r\n(anonyme Funktion) — show:61\r\npromiseReactionJob\r\n```\r\n\r\nThe following example works wonderfully in desktop browsers. However, on an iOS device it throws the mentioned errors:\r\nhttps://jsfiddle.net/mouLbacd/1/\r\n\r\nThe error is already discussed in [kripken/emscripten#6042](https://github.com/kripken/emscripten/issues/6042). It seems as if it's on wasm and recompiling with asm.js could solve the problem. But the problem is still being discussed. The fact is that libsodium.js in the current state is defective on all iOS devices since 11.2.2.\r\n"}}
{"actor":{"display_login":"tpetry"}}