🐛 fixed a bug if parser was called with a stream at EOF (#367)
This commit is contained in:
parent
e3450cac72
commit
dfc49e7afe
@ -8743,8 +8743,11 @@ basic_json_parser_66:
|
||||
// append n characters to make sure that there is sufficient
|
||||
// space between m_cursor and m_limit
|
||||
m_line_buffer.append(1, '\x00');
|
||||
if (n > 0)
|
||||
{
|
||||
m_line_buffer.append(n - 1, '\x01');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// delete processed characters from line buffer
|
||||
|
@ -7892,8 +7892,11 @@ class basic_json
|
||||
// append n characters to make sure that there is sufficient
|
||||
// space between m_cursor and m_limit
|
||||
m_line_buffer.append(1, '\x00');
|
||||
if (n > 0)
|
||||
{
|
||||
m_line_buffer.append(n - 1, '\x01');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// delete processed characters from line buffer
|
||||
|
Loading…
Reference in New Issue
Block a user