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 stdio/16398] New: ftell stuck on file opened w+ for writing wide characters


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.


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