• Jason Smith's avatar
    Fix buffer overrun using PutN (closes #672) · 252e8122
    Jason Smith authored
    Fix inconsistent calling of template functions in PutN in stream.h. When
    used with a GenericStringBuffer<<UTF8>, MemoryPoolAllocator>, PutN would call
    PutReserve from stream.h, and PutUnsafe from stringbuffer.h. This
    resulted in bytes being added to the buffer without allocating space.
    
    This was not an issue when used with the default memory allocator,
    because in this case the specialized PutN is used from stringbuffer.h.
    252e8122
Name
Last commit
Last update
CMakeModules Loading commit data...
bin Loading commit data...
doc Loading commit data...
docker/debian Loading commit data...
example Loading commit data...
include/rapidjson Loading commit data...
test Loading commit data...
thirdparty Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CMakeLists.txt Loading commit data...
RapidJSON.pc.in Loading commit data...
RapidJSONConfig.cmake.in Loading commit data...
RapidJSONConfigVersion.cmake.in Loading commit data...
appveyor.yml Loading commit data...
include_dirs.js Loading commit data...
library.json Loading commit data...
license.txt Loading commit data...
package.json Loading commit data...
rapidjson.autopkg Loading commit data...
readme.md Loading commit data...
readme.zh-cn.md Loading commit data...
travis-doxygen.sh Loading commit data...