allocating an extra byte for string-like fields to guarantee null-termination
fixed an incorrect size argument to calloc
impose a maximum size limit on calls to calloc with a new macro PREALLOCCHECK. This is probably the most intrusive change and could use strict review to check that the limits are appropriate.
SIZECHECK
callsSIZECHECK
inIsCompressedRTF
sizeof(DWORD)
instead of4
calloc
calloc
with a new macroPREALLOCCHECK
. This is probably the most intrusive change and could use strict review to check that the limits are appropriate.