This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/15298] open_memstream(): seek-past-end should not change size until write


http://sourceware.org/bugzilla/show_bug.cgi?id=15298

--- Comment #1 from Philip Guenther <guenther at gmail dot com> 2013-03-23 05:33:52 UTC ---
The behavior of fseek(fp, offset, SEEK_END) also seems...odd.  My expectation,
given the wording of the spec, is that it would be relative to the buffer
length (as defined by the spec) but it seems to be relative to something bigger
than that, the actual allocated buffer size, perhaps?  Isn't the stream created
by open_memstream() supposed to behave like an in-memory version of a temp
file, so seeks from SEEK_END should be relative to just past the last written
position?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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