This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Memory leak in vsnprintf


On Wed, Mar 15, 2006 at 02:39:45PM -0600, Paul Mattes wrote:
>I believe I have found a memory leak in the Cygwin version of 
>vsnprintf().  If it is called with a NULL 'str' parameter and a 0 
>'length', it leaks a BUFSIZ-sized buffer.  (Per C99 and SUSv3, calling 
>vsnprintf() with a NULL 'str' and 0 'length' is a way to find out how 
>big the formatted string would be without actually storing it anywhere.)
>
>I see that Cygwin's vsnprintf() comes from newlib.  Should I report this 
>to them instead?

Yes.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]