mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Fix runtime exceptions in Visual Studio environment. (#926)
This commit is contained in:
@@ -48,7 +48,7 @@ void SingleDocParser::HandleDocument(EventHandler& eventHandler) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SingleDocParser::HandleNode(EventHandler& eventHandler) {
|
void SingleDocParser::HandleNode(EventHandler& eventHandler) {
|
||||||
DepthGuard<2000> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
|
DepthGuard<500> depthguard(depth, m_scanner.mark(), ErrorMsg::BAD_FILE);
|
||||||
|
|
||||||
// an empty node *is* a possibility
|
// an empty node *is* a possibility
|
||||||
if (m_scanner.empty()) {
|
if (m_scanner.empty()) {
|
||||||
|
@@ -804,7 +804,7 @@ TEST_F(EmitterTest, OutputCharset) {
|
|||||||
out << "\x24 \xC2\xA2 \xE2\x82\xAC";
|
out << "\x24 \xC2\xA2 \xE2\x82\xAC";
|
||||||
out << EndSeq;
|
out << EndSeq;
|
||||||
|
|
||||||
ExpectEmit("- $ ¢ €\n- \"$ \\xa2 \\u20ac\"");
|
ExpectEmit("- \x24 \xC2\xA2 \xE2\x82\xAC\n- \"\x24 \\xa2 \\u20ac\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(EmitterTest, EscapedUnicode) {
|
TEST_F(EmitterTest, EscapedUnicode) {
|
||||||
|
Reference in New Issue
Block a user