• 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
..
CMakeLists.txt test for no-double-promotion instead of just checking compiler version
allocatorstest.cpp Fix #399 MemoryPoolAllocator::Realloc expands fail
bigintegertest.cpp Update license headers for tests
documenttest.cpp Try to fix all /W4 warnings in VC2015
dtoatest.cpp avoid array index out-of-bounds
encodedstreamtest.cpp Normalize line endings but not JSON files
encodingstest.cpp Fix warnings on GCC 6 and later (closes #666)
filestreamtest.cpp Normalize line endings but not JSON files
fwdtest.cpp Normalize line endings but not JSON files
istreamwrappertest.cpp Fix warnings on GCC 6 and later (closes #666)
itoatest.cpp avoid signed-integer overflow, which is undefined behavior
jsoncheckertest.cpp Normalize line endings but not JSON files
namespacetest.cpp Normalize line endings but not JSON files
ostreamwrappertest.cpp Fix OStreamWrapper test
pointertest.cpp Add optional unresolvedTokenIndex parameter to Pointer::Get() and related
prettywritertest.cpp PrettyWriter formatting options.
readertest.cpp readertest: Suppress "dangling-else" warning on GCC 7 and later
regextest.cpp Fix a bug in regex
schematest.cpp with recent clang, when expected is false, this code triggers -Wunreachable-code
simdtest.cpp Add test cases for ScanCopyUnescapedString
strfunctest.cpp Add fwd.h and extract stream.h
stringbuffertest.cpp Fix buffer overrun using PutN (closes #672)
strtodtest.cpp do potentially precision-losing conversions explicitly
unittest.cpp Fix VC warning C4189
unittest.h Normalize line endings but not JSON files
valuetest.cpp Loading commit data...
writertest.cpp Loading commit data...