Bug 1052846 - ftell stuck on file opened w+ for writing wide characters
Summary: ftell stuck on file opened w+ for writing wide characters
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Siddhesh Poyarekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-14 08:19 UTC by Siddhesh Poyarekar
Modified: 2016-11-24 12:12 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-14 09:13:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Reproducer program (10.44 KB, text/x-c)
2014-01-14 08:19 UTC, Siddhesh Poyarekar
no flags Details

Description Siddhesh Poyarekar 2014-01-14 08:19:02 UTC
Created attachment 849788 [details]
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.


Note You need to log in before you can comment on or make changes to this bug.