about summary refs log tree commit diff
path: root/libio
Commit message (Collapse)AuthorAgeFilesLines
* Fix infinite loop in ftell when writing wide char data (BZ #16398)Siddhesh Poyarekar2014-02-053-5/+115
| | | | | | | | | | | | | | | ftell tries to avoid flushing the buffer when it is in write mode by converting the wide char data and placing it into the binary buffer. If the output buffer space is full and there is data to write, the code reverts to flushing the buffer. This breaks when there is space in the buffer but it is not enough to convert the next character in the wide data buffer, due to which __codecvt_do_out returns a __codecvt_partial status. In this case, ftell keeps running in an infinite loop. The fix here is to detect the __codecvt_partial status in addition to checking if the buffer is full. I have also added a test case that demonstrates the infinite loop.
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-01153-153/+153
|
* Rename Oriya locale to Odia (bug 15601)Siddhesh Poyarekar2013-11-201-1/+1
| | | | | | | | | | | | The state of Orissa was officially renamed the state to Odisha and the language from Oriya to Odia in 2010. References: http://zeenews.india.com/election09/story.aspx?aid=739995 http://orissamatters.com/2011/11/07/orissa-became-odisha/ http://www.ndtv.com/article/india/parliament-passes-bill-to-change-orissa-s-name-93888 http://orissa.gov.in/e-magazine/Orissareview/2011/Nov/engpdf/9-17.pdf
* Fix fwrite() reading beyond end of buffer in error pathEric Biggers2013-10-115-24/+21
| | | | | | | | | | | Partially revert commits 2b766585f9b4ffabeef2f36200c275976b93f2c7 and de2fd463b1c0310d75084b6d774fb974075a4ad9, which were intended to fix BZ#11741 but caused another, likely worse bug, namely that fwrite() and fputs() could, in an error path, read data beyond the end of the specified buffer, and potentially even write this data to the file. Fix BZ#11741 properly by checking the return value from _IO_padn() in stdio-common/vfprintf.c.
* Fix memory leaks in libio on allocation failureAllan McRae2013-09-092-3/+8
|
* Remove --disable-versioning.Joseph Myers2013-09-041-2/+2
|
* Fix typos.Ondřej Bílka2013-08-211-2/+2
|
* Use (void) in no-arguments function definitions.Joseph Myers2013-06-087-14/+14
|
* Avoid use of "register" as optimization hint.Joseph Myers2013-06-074-17/+17
|
* Fix leading whitespaces.Ondrej Bilka2013-06-062-2/+2
|
* Remove trailing whitespace.Joseph Myers2013-06-052-3/+3
|
* Initialize wide struct info.Ondrej Bilka2013-05-241-0/+4
| | | | | | | | Fixes 15381. Using wide character function is on byte oriented memstream is undefined behaviour. This behaviour was masked by not initializing wide struct info. We now initialize it to cause a predictable crash.
* Fix off-by-one bug in tst-fwrite-errorSiddhesh Poyarekar2013-04-151-1/+1
| | | | | tst-fwrite-error did not allocate enough space for the string 'world' and its NULL terminator. Fixed.
* Remove lots of inline keywords.Roland McGrath2013-02-071-1/+1
|
* Add --enable-hardcoded-path-in-tests configure optionH.J. Lu2013-01-112-3/+3
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-02153-174/+153
|
* Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers2013-01-011-2/+1
|
* [BZ #12724] libio: revert partial POSIX 2008 fclose supportMike Frysinger2012-12-013-144/+4
| | | | | | | | | | | In BZ #12724, partial support for POSIX 2008 fclose behavior was added. Since it isn't entirely conforming to the spec, some applications are known to be breaking in this intermediate state. So revert the partial support until we can get things fully implemented. This reverts commit fcabc0f8b185f9e0a9289720be5ede6c39b3bf21. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make fwrite return 0 on EOFSiddhesh Poyarekar2012-11-284-11/+78
|
* printf should return negative value on errorSiddhesh Poyarekar2012-11-164-14/+15
| | | | | | [BZ #11741] Fixed bug where printf and family may return a spurious success when printing padded formats.
* Note in a comment that references to C++ bits are obsoleteSiddhesh Poyarekar2012-11-161-0/+8
| | | | | libio is not used by libstdc++ anymore, but there are references to streambuf are all over.
* Change type of constant to avoid a warning.Thomas Schwinge2012-11-011-1/+1
| | | | Warning has been introduced in commit 7583a88d1c7170caad26966bcea8bfc2c92093ba.
* Define and use $(run-built-tests).Joseph Myers2012-10-241-1/+1
|
* Remove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h.Joseph Myers2012-10-189-87/+12
|
* Remove _IO_pos_t.Joseph Myers2012-10-101-1/+0
|
* Remove _G_off64_t and _G_stat64 from _G_config.h.Joseph Myers2012-10-095-8/+8
|
* Don't flush write buffer for ftellSiddhesh Poyarekar2012-09-282-25/+112
| | | | | | [BZ #5298] Use write pointer state along with the file offset and/or the read pointers to get the current file position.
* Adjust wide data buffer pointers during fseek and ftellSiddhesh Poyarekar2012-09-283-1/+234
| | | | | | | | | [BZ #14543] Set the internal buffer state correctly whenever the external buffer state is modified by fseek by either computing the current _IO_read_ptr/end for the internal buffer based on the new _IO_read_ptr in the external buffer or converting the content read into the external buffer, up to the extent of the requested fseek offset.
* Remove various _G_*_t type names.Joseph Myers2012-09-252-8/+8
|
* Fix minor typos in commentsSiddhesh Poyarekar2012-09-251-2/+2
|
* Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin2012-09-252-4/+5
|
* Remove _G_HAVE_SYS_WAIT and _IO_HAVE_SYS_WAIT.Joseph Myers2012-09-213-23/+0
|
* Remove _G_NEED_STDARG_H.Joseph Myers2012-09-201-8/+6
|
* Remove _G_HAVE_IO_GETLINE_INFO.Joseph Myers2012-09-172-8/+0
|
* Remove _G_HAVE_PRINTF_FP.Joseph Myers2012-09-131-3/+0
|
* Remove _G_USING_THUNKS.Joseph Myers2012-09-101-30/+12
|
* Remove libio C++ vtable definitions.Joseph Myers2012-09-101-24/+0
|
* Run tst-fopenloc if $(build-shared) is yesH.J. Lu2012-09-101-4/+14
|
* Fix typos in commentsSiddhesh Poyarekar2012-09-053-5/+5
| | | | | | * libio/fileops.c: Fix typos in comments. * libio/oldfileops.c: Likewise. * libio/wfileops.c: Likewise.
* Fix iogetdelim.c (latent) integer overflow (bug 9914).Joseph Myers2012-09-041-1/+2
|
* Make libio compile without _IO_MTSAFE_IO.Roland McGrath2012-08-172-0/+18
|
* Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.Roland McGrath2012-08-171-3/+3
|
* Clean up lockf64, fseeko64, ftello64, fgetpos64, fsetpos64 for off64_t == off_t.Roland McGrath2012-08-068-14/+65
|
* Clean up fopen64 for O_LARGEFILE==0.Roland McGrath2012-08-012-0/+12
|
* Fix lots of bitrot for stub configurations.Roland McGrath2012-07-301-2/+2
|
* Remove use of INTDEF/INTUSE in libioAndreas Schwab2012-05-2457-597/+516
|
* Avoid dup3 PLT usage.Thomas Schwinge2012-05-122-6/+6
| | | | Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c.
* Hurd: #include <kernel-features.h>Thomas Schwinge2012-05-103-6/+8
|
* Fix conditions on checking versions of dprintf (bug 13775).Joseph Myers2012-05-032-22/+30
|
* Fix attributes for fortify functions.Marek Polacek2012-04-293-22/+22
|