-
Notifications
You must be signed in to change notification settings - Fork 129
Description
When generating code with fedex_plus on msvc build, the output gets corrupted.
This is probably due to some buffer overrun in string manipulation.
When replacing a number of functions by their 'safe' version in msvc following issue came up :
When printing output using the function TypeDescription() in classes.c for type 'managed_design_object'
a buffer overrun occurs when concatenating the select type.
A buffer of 4000 character is provided, but this strcat loop generates a string of 4997 characters or so.
(Assertion at line 2898 in classes.c)
When trying to increase the buffer size provided from 4000 to 5000, a 'heap' exception shows up, so at the moment
it was not possible to check if increasing this buffer size is a solution.
IMO this kind of problem should always be catched somehow, so a safe string manipulation library would surely be
a good idea.