From 6f1646138a35ad8ee24b6249c5a0eefb9c420fbe Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Fri, 25 Jul 2014 00:59:19 +0800 Subject: [PATCH] Fixes stack overflow --- include/rapidjson/writer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/writer.h b/include/rapidjson/writer.h index c6cdfdd..d72d274 100644 --- a/include/rapidjson/writer.h +++ b/include/rapidjson/writer.h @@ -238,7 +238,7 @@ protected: } bool WriteUint64(uint64_t u64) { - char buffer[11]; + char buffer[20]; const char* end = internal::u64toa(u64, buffer); for (const char* p = buffer; p != end; ++p) os_->Put(*p);