liam-middlebrook / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Setting a key to a node that goes out of scope results in a crash #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
YAML::Node node;
{
  YAML::Node temp("Hello, world");
  node[temp] = 0;
}
// at this point, anything that touches node will crash, e.g.:
YAML::Dump(node);

This is on version 0.5.1, and verified at the tip, r04429ec58537. OS X 10.9.4, 
clang:

$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix

Original issue reported on code.google.com by jbe...@gmail.com on 16 Aug 2014 at 3:27

GoogleCodeExporter commented 9 years ago
Fixed, r1a73e09feda9847f9470bcf9922a04f5325cdb0a.

Original comment by jbe...@gmail.com on 16 Aug 2014 at 3:54