mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 03:29:59 +01:00

MemoryStream::Peek() did not return '\0' if src_ == end_, but Peek() == '\0' is used in parsing in the GenericReader. Without this change, parsing with MemoryStream as the InputStream could result in a segmentation fault.