{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/309","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/309/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/309/events","html_url":"https://github.com/chrsmith/bwapi/issues/309","id":58932061,"number":309,"title":"Crash while calling sendText(\"%s\", \"%s\") and similar calls.","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Security","name":"Security","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Defect","name":"Type-Defect","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Usability","name":"Usability","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T16:53:11Z","updated_at":"2015-02-25T16:53:12Z","closed_at":"2015-02-25T16:53:11Z","body":"```\nWhat steps will reproduce the problem?\n1. Run ExampleAIClient\n2. In chat, type %s\n3. Broodwar will crash\nAlternatively:\n1. call Broodwar->printf(\"%s\", \"%s\") or Broodwar->sendText(\"%s\", \"%s\");\n2. Broodwar will crash\n\n\nWhat is the expected output? What do you see instead?\nExpected output is \"%s\", since it's just an unformatted string\n\nWhat version of the product are you using? On what operating system?\nBWAPI 3.3, Win XPSP3\n\nPlease provide any additional information below.\nThe effect is that it's unstable to send any strings containing %, or other \nspecial characters.\n\nMy impression is that there is a cascade of vprintfs, and at least one of them \nis called with the user string in the 'format' parameter, instead of '%s', \nwhich is safe.\n```\n\n-----\nOriginal issue reported on code.google.com by `erez27` on 24 Nov 2010 at 1:08"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75999695","html_url":"https://github.com/chrsmith/bwapi/issues/309#issuecomment-75999695","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/309","id":75999695,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T16:53:11Z","updated_at":"2015-02-25T16:53:11Z","body":"```\nMust be an AI module issue.\n```\n\n-----\nOriginal comment by `AHeinerm` on 24 Nov 2010 at 4:32"}}