This file contains a utility class that appends sprintf'ed output to a dynamically allocated buffer while growing the buffer if necessary.
It is still conceivable that the sprintf will generate a long enough string that will cause a buffer overflow. However, since the class is only used to render states into strings, and the margin allowed for the buffer is long enough, this cannot actually happen.