returnsax->parse_error(chars_read,last_token,parse_error::create(113,chars_read,"byte after '#' must denote a number type; last byte: 0x"+last_token));
}
}
}
}
}
}
...
@@ -1393,6 +1393,10 @@ class binary_reader
...
@@ -1393,6 +1393,10 @@ class binary_reader
get_ignore_noop();
get_ignore_noop();
if(JSON_UNLIKELY(current!='#'))
if(JSON_UNLIKELY(current!='#'))
{
{
if(JSON_UNLIKELY(notunexpect_eof()))
{
returnfalse;
}
autolast_token=get_token_string();
autolast_token=get_token_string();
returnsax->parse_error(chars_read,last_token,parse_error::create(112,chars_read,"expected '#' after UBJSON type information; last byte: 0x"+last_token));
returnsax->parse_error(chars_read,last_token,parse_error::create(112,chars_read,"expected '#' after UBJSON type information; last byte: 0x"+last_token));
returnsax->parse_error(chars_read,last_token,parse_error::create(113,chars_read,"byte after '#' must denote a number type; last byte: 0x"+last_token));
}
}
}
}
}
}
...
@@ -7050,6 +7051,10 @@ class binary_reader
...
@@ -7050,6 +7051,10 @@ class binary_reader
get_ignore_noop();
get_ignore_noop();
if(JSON_UNLIKELY(current!='#'))
if(JSON_UNLIKELY(current!='#'))
{
{
if(JSON_UNLIKELY(notunexpect_eof()))
{
returnfalse;
}
autolast_token=get_token_string();
autolast_token=get_token_string();
returnsax->parse_error(chars_read,last_token,parse_error::create(112,chars_read,"expected '#' after UBJSON type information; last byte: 0x"+last_token));
returnsax->parse_error(chars_read,last_token,parse_error::create(112,chars_read,"expected '#' after UBJSON type information; last byte: 0x"+last_token));
CHECK_THROWS_WITH(json::from_ubjson(v),"[json.exception.parse_error.112] parse error at 4: expected '#' after UBJSON type information; last byte: 0x02");
CHECK_THROWS_WITH(json::from_ubjson(v),"[json.exception.parse_error.112] parse error at 4: expected '#' after UBJSON type information; last byte: 0x02");
CHECK_THROWS_WITH(json::from_ubjson(v0),"[json.exception.parse_error.113] parse error at 3: byte after '#' must denote a number type; last byte: 0x54");
CHECK_THROWS_WITH(json::from_ubjson(vT),"[json.exception.parse_error.112] parse error at 4: expected '#' after UBJSON type information; last byte: 0x69");