This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1996] open_memstream() and seek past end of buffer
- From: "rsa at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Apr 2006 22:05:02 -0000
- Subject: [Bug libc/1996] open_memstream() and seek past end of buffer
- References: <20051208153314.1996.michael.kerrisk@gmx.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rsa at us dot ibm dot com 2006-04-24 22:05 -------
Michael,
Your call:
l = fseek(output, 50, SEEK_END);
is failing with l == -1, but there is no errno being set. I'm taking a look at
the fseek() function. I think it is returning from CHECK_FILE() with -1 and no
errno. This is probably because you're trying to seek to the end of an empty
stream at this point. I'll investigate more.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1996
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.