Skip to content
Permalink
Browse files
Fix #657, crash because of missed value in json
  • Loading branch information
klirichek committed Jan 21, 2019
1 parent 57b6637 commit 28d862774874891a03e361da1b0347ebe8066ce0
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/gtests_json.cpp
  2. +1 −0 src/sphinxjson.y
@@ -255,7 +255,7 @@ TEST_F( TJson, parser )
i12:"-123abc",
f1:"3.15",
f2:"16777217.123"})", true ) );

ASSERT_TRUE ( testcase ( R"({"a":{"b":0,"c":0},"d":[]})") );
}

TEST_F ( TJson, accessor )
@@ -80,6 +80,7 @@ value_list:
{
$$.m_eType = JSON_MIXED_VECTOR;
$$.m_dChildren.m_iStart = -1;
$$.m_dChildren.m_iLen = 0;
}
| value
{

0 comments on commit 28d8627

Please sign in to comment.