{"action":"opened","issue":{"url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/650","repository_url":"https://api.github.com/repos/jbeder/yaml-cpp","labels_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/650/comments","events_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/650/events","html_url":"https://github.com/jbeder/yaml-cpp/issues/650","id":390497322,"node_id":"MDU6SXNzdWUzOTA0OTczMjI=","number":650,"title":"Stack Overflow in HandleNode() singledocparser.cpp:330","user":{"login":"DawnYang-cn","id":29827780,"node_id":"MDQ6VXNlcjI5ODI3Nzgw","avatar_url":"https://avatars2.githubusercontent.com/u/29827780?v=4","gravatar_id":"","url":"https://api.github.com/users/DawnYang-cn","html_url":"https://github.com/DawnYang-cn","followers_url":"https://api.github.com/users/DawnYang-cn/followers","following_url":"https://api.github.com/users/DawnYang-cn/following{/other_user}","gists_url":"https://api.github.com/users/DawnYang-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/DawnYang-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DawnYang-cn/subscriptions","organizations_url":"https://api.github.com/users/DawnYang-cn/orgs","repos_url":"https://api.github.com/users/DawnYang-cn/repos","events_url":"https://api.github.com/users/DawnYang-cn/events{/privacy}","received_events_url":"https://api.github.com/users/DawnYang-cn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T02:58:28Z","updated_at":"2018-12-13T02:58:28Z","closed_at":null,"author_association":"NONE","body":"### Version\r\nmaster branch of this project\r\n### Payload\r\n[testcases](https://github.com/DawnYang-cn/yaml-testcases)\r\nUse the program \"parse\" in util floder.Testcases will cause a segmentation fault.\r\n### Asan Crash Information\r\n\r\n=================================================================\r\n==7878==ERROR: AddressSanitizer: stack-overflow on address 0x7ffc04cb2d08 (pc 0x7f3753f45485 bp 0x7ffc04cb3550 sp 0x7ffc04cb2cf0 T0)\r\n    #0 0x7f3753f45484 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99484)\r\n    #1 0x45d09a in YAML::detail::memory::create_node() /home/dawn/yaml-cpp-asan/src/memory.cpp:17\r\n    #2 0x413968 in YAML::detail::memory_holder::create_node() /home/dawn/yaml-cpp-asan/include/yaml-cpp/node/detail/memory.h:37\r\n    #3 0x413968 in YAML::NodeBuilder::Push(YAML::Mark const&, unsigned long) /home/dawn/yaml-cpp-asan/src/nodebuilder.cpp:77\r\n    #4 0x413968 in YAML::NodeBuilder::OnMapStart(YAML::Mark const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, YAML::EmitterStyle::value) /home/dawn/yaml-cpp-asan/src/nodebuilder.cpp:63\r\n    #5 0x4272d0 in YAML::SingleDocParser::HandleNode(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:120\r\n    #6 0x42abde in YAML::SingleDocParser::HandleFlowSequence(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:199\r\n    #7 0x426f54 in YAML::SingleDocParser::HandleSequence(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:143\r\n    #8 0x426f54 in YAML::SingleDocParser::HandleNode(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:98\r\n    #9 0x434d14 in YAML::SingleDocParser::HandleCompactMap(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:330\r\n==============================snip====================================\r\n    #298 0x4352c2 in YAML::SingleDocParser::HandleMap(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:226\r\n    #299 0x4272db in YAML::SingleDocParser::HandleNode(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:121\r\n    #300 0x42abde in YAML::SingleDocParser::HandleFlowSequence(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:199\r\n    #301 0x426f54 in YAML::SingleDocParser::HandleSequence(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:143\r\n    #302 0x426f54 in YAML::SingleDocParser::HandleNode(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:98\r\n    #303 0x434d14 in YAML::SingleDocParser::HandleCompactMap(YAML::EventHandler&) /home/dawn/yaml-cpp-asan/src/singledocparser.cpp:330\r\n\r\nIssue #459 is a similiar problem ，maybe the fix was not properly."}}
{"actor":{"display_login":"DawnYang-cn"}}