public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/16398] New: ftell stuck on file opened w+ for writing wide characters
@ 2014-01-06  9:02 siddhesh at redhat dot com
  2014-01-06  9:02 ` [Bug stdio/16398] " siddhesh at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: siddhesh at redhat dot com @ 2014-01-06  9:02 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-13  9:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06  9:02 [Bug stdio/16398] New: ftell stuck on file opened w+ for writing wide characters siddhesh at redhat dot com
2014-01-06  9:02 ` [Bug stdio/16398] " siddhesh at redhat dot com
2014-02-05  7:19 ` cvs-commit at gcc dot gnu.org
2014-02-05  7:20 ` siddhesh at redhat dot com
2014-02-05 11:23 ` cvs-commit at gcc dot gnu.org
2014-06-13  9:12 ` fweimer 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).