[sr-dev] rtpengine, Question about 'str_sprintf'

Frederic-Philippe Metz frederic.metz at 1und1.de
Thu Oct 23 14:32:09 CEST 2014


Hi all,

I have a question resp. str_sprintf:

At the end, it ends up in 'INLINE str *__str_vsprintf(const char *fmt, 
va_list ap)' in str.h, but what I understand is that vasprintf does not 
allocate memory and 'INLINE str *__str_vsprintf(const char *fmt, va_list 
ap)' does not allocate memory too. So there's a risk of writing a string 
into a memory area not allocated before ? Am I right or isn't it a good 
day for coding today :-) ?

Cheers,
   Frédéric



More information about the sr-dev mailing list