When the format is NULL vsnprintf() always returns -1 so we keep doubling the allocated memory until running out of memory.
pos