This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/16398] New: ftell stuck on file opened w+ for writing wide characters
- From: "siddhesh at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 06 Jan 2014 09:01:54 +0000
- Subject: [Bug stdio/16398] New: ftell stuck on file opened w+ for writing wide characters
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16398
Bug ID: 16398
Summary: ftell stuck on file opened w+ for writing wide
characters
Product: glibc
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: stdio
Assignee: siddhesh at redhat dot com
Reporter: siddhesh at redhat dot com
Created attachment 7338
--> https://sourceware.org/bugzilla/attachment.cgi?id=7338&action=edit
Reproducer program
ftell gets stuck in an infinite loop when it is called after an fputsw
(obviously for wide characters) and the buffer is not full, but does not have
enough space to convert the current wide character.
How Reproducible:
Always
Steps to Reproduce:
Build and run attached reproducer.
Actual Behaviour:
Infinite loop
Expected behaviour:
Program returns.
Patch coming up.
--
You are receiving this mail because:
You are on the CC list for the bug.