{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/180","repository_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK","labels_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/180/comments","events_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/180/events","html_url":"https://github.com/espressif/ESP8266_RTOS_SDK/issues/180","id":322895401,"number":180,"title":"sscanf crash if char* malloc pointer come from second pool","user":{"login":"Ymhr6","id":38753952,"avatar_url":"https://avatars0.githubusercontent.com/u/38753952?v=4","gravatar_id":"","url":"https://api.github.com/users/Ymhr6","html_url":"https://github.com/Ymhr6","followers_url":"https://api.github.com/users/Ymhr6/followers","following_url":"https://api.github.com/users/Ymhr6/following{/other_user}","gists_url":"https://api.github.com/users/Ymhr6/gists{/gist_id}","starred_url":"https://api.github.com/users/Ymhr6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ymhr6/subscriptions","organizations_url":"https://api.github.com/users/Ymhr6/orgs","repos_url":"https://api.github.com/users/Ymhr6/repos","events_url":"https://api.github.com/users/Ymhr6/events{/privacy}","received_events_url":"https://api.github.com/users/Ymhr6/received_events","type":"User","site_admin":false},"labels":[{"id":154479609,"url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-14T16:43:58Z","updated_at":"2018-05-18T15:15:36Z","closed_at":null,"author_association":"NONE","body":"if my malloc pointer is 0x40108808, it come from second pool (from _lit4_end to 0x4010C000). \r\nThe function sscanf that read on it, will crash with ShowCritical: 0\r\n```C\r\nchar* lastSavedTime_ = \"2018\";\r\nchar* lastSavedTime1 = malloc(100);\r\nint p = (int)lastSavedTime1; // p is 0x40108808\r\nstrcpy(lastSavedTime1, lastSavedTime_);\r\nint aYear;\r\nsscanf(lastSavedTime1, \"%04d\", &aYear);\r\n```"},"comment":{"url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/comments/390239720","html_url":"https://github.com/espressif/ESP8266_RTOS_SDK/issues/180#issuecomment-390239720","issue_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/180","id":390239720,"user":{"login":"Ymhr6","id":38753952,"avatar_url":"https://avatars0.githubusercontent.com/u/38753952?v=4","gravatar_id":"","url":"https://api.github.com/users/Ymhr6","html_url":"https://github.com/Ymhr6","followers_url":"https://api.github.com/users/Ymhr6/followers","following_url":"https://api.github.com/users/Ymhr6/following{/other_user}","gists_url":"https://api.github.com/users/Ymhr6/gists{/gist_id}","starred_url":"https://api.github.com/users/Ymhr6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ymhr6/subscriptions","organizations_url":"https://api.github.com/users/Ymhr6/orgs","repos_url":"https://api.github.com/users/Ymhr6/repos","events_url":"https://api.github.com/users/Ymhr6/events{/privacy}","received_events_url":"https://api.github.com/users/Ymhr6/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T15:15:36Z","updated_at":"2018-05-18T15:15:36Z","author_association":"NONE","body":"bo, I don't understand, zip folder structure from master branch and from release 2.0.0 are completely different. I use release zip because this page https://www.espressif.com/en/support/download/sdks-demos point me to release zip."}}
{"actor":{"display_login":"Ymhr6"}}