public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2072] New: memory leak in stdio-common/printf_fp.c
@ 2005-12-20 13:23 heiko dot nardmann at secunet dot com
2006-01-15 16:26 ` [Bug libc/2072] " aj at suse dot de
2006-04-25 18:39 ` drepper at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: heiko dot nardmann at secunet dot com @ 2005-12-20 13:23 UTC (permalink / raw)
To: glibc-bugs
In stdio-common/printf_fp.c there are some locations (handling error
situations) in function _printf_fp() where the deallocation of memory for
wbuffer is not handled. E.g. the macros PADN() und outchar() return to caller
without checking wbuffer. I'm not sure whether this is intentionally done or
not.
#define outchar(ch) \
do \
{ \
register const int outc = (ch); \
if (putc (outc, fp) == EOF) \
return -1; \
++done; \
} while (0)
#define PADN(ch, len) \
do \
{ \
if (PAD (fp, ch, len) != len) \
return -1; \
done += len; \
} \
while (0)
--
Summary: memory leak in stdio-common/printf_fp.c
Product: glibc
Version: 2.3.6
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: heiko dot nardmann at secunet dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2072
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/2072] memory leak in stdio-common/printf_fp.c
2005-12-20 13:23 [Bug libc/2072] New: memory leak in stdio-common/printf_fp.c heiko dot nardmann at secunet dot com
@ 2006-01-15 16:26 ` aj at suse dot de
2006-04-25 18:39 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: aj at suse dot de @ 2006-01-15 16:26 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From aj at suse dot de 2006-01-15 16:26 -------
Those really seem to not get freed.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|0000-00-00 00:00:00 |2006-01-15 16:26:27
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=2072
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/2072] memory leak in stdio-common/printf_fp.c
2005-12-20 13:23 [Bug libc/2072] New: memory leak in stdio-common/printf_fp.c heiko dot nardmann at secunet dot com
2006-01-15 16:26 ` [Bug libc/2072] " aj at suse dot de
@ 2006-04-25 18:39 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2006-04-25 18:39 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2006-04-25 18:39 -------
Should be fixed in CVS.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=2072
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-25 18:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-20 13:23 [Bug libc/2072] New: memory leak in stdio-common/printf_fp.c heiko dot nardmann at secunet dot com
2006-01-15 16:26 ` [Bug libc/2072] " aj at suse dot de
2006-04-25 18:39 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).