{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/llnode/issues/57","repository_url":"https://api.github.com/repos/nodejs/llnode","labels_url":"https://api.github.com/repos/nodejs/llnode/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/llnode/issues/57/comments","events_url":"https://api.github.com/repos/nodejs/llnode/issues/57/events","html_url":"https://github.com/nodejs/llnode/pull/57","id":191603399,"number":57,"title":"common: introduce `llnode::ResetGetOpt`","user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-24T23:54:57Z","updated_at":"2016-11-25T10:31:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/llnode/pulls/57","html_url":"https://github.com/nodejs/llnode/pull/57","diff_url":"https://github.com/nodejs/llnode/pull/57.diff","patch_url":"https://github.com/nodejs/llnode/pull/57.patch"},"body":"When `getopt` is called it starts seeking from the last char it has\r\nseen. Unfortunately, that last char may be part of the string that was\r\nalready deallocated.\r\n\r\nReset that pointer to the static string.\r\n\r\nSee: https://github.com/nodejs/llnode/pull/35#issuecomment-262854793\r\n\r\ncc @hhellyer @yjhjstz "},"comment":{"url":"https://api.github.com/repos/nodejs/llnode/issues/comments/262927270","html_url":"https://github.com/nodejs/llnode/pull/57#issuecomment-262927270","issue_url":"https://api.github.com/repos/nodejs/llnode/issues/57","id":262927270,"user":{"login":"hhellyer","id":11979939,"avatar_url":"https://avatars.githubusercontent.com/u/11979939?v=3","gravatar_id":"","url":"https://api.github.com/users/hhellyer","html_url":"https://github.com/hhellyer","followers_url":"https://api.github.com/users/hhellyer/followers","following_url":"https://api.github.com/users/hhellyer/following{/other_user}","gists_url":"https://api.github.com/users/hhellyer/gists{/gist_id}","starred_url":"https://api.github.com/users/hhellyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhellyer/subscriptions","organizations_url":"https://api.github.com/users/hhellyer/orgs","repos_url":"https://api.github.com/users/hhellyer/repos","events_url":"https://api.github.com/users/hhellyer/events{/privacy}","received_events_url":"https://api.github.com/users/hhellyer/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T10:31:28Z","updated_at":"2016-11-25T10:31:28Z","body":"I think there's differences between Linux and Mac implementations of getopt. I can't reliably reproduce the problem on my Ubuntu VM but \"man 3 getopt\" says in it's notes section that optind should be reset to 0 in some circumstances to force some internal reinitialisation.\r\n\r\nI'm not sure if we're hitting the conditions it specifies but it might be worth trying if you can reproduce the problem easily."}}
{"actor":{"display_login":"hhellyer"}}