Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-02-05 | Fix infinite loop in ftell when writing wide char data (BZ #16398) | Siddhesh Poyarekar | |
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. | |||
2014-01-01 | Update copyright notices with scripts/update-copyrights | Allan McRae | |
2013-11-20 | Rename Oriya locale to Odia (bug 15601) | Siddhesh Poyarekar | |
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 | |||
2013-10-11 | Fix fwrite() reading beyond end of buffer in error path | Eric Biggers | |
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. | |||
2013-09-09 | Fix memory leaks in libio on allocation failure | Allan McRae | |
2013-09-04 | Remove --disable-versioning. | Joseph Myers | |
2013-08-21 | Fix typos. | Ondřej Bílka | |
2013-06-08 | Use (void) in no-arguments function definitions. | Joseph Myers | |
2013-06-07 | Avoid use of "register" as optimization hint. | Joseph Myers | |
2013-06-06 | Fix leading whitespaces. | Ondrej Bilka | |
2013-06-05 | Remove trailing whitespace. | Joseph Myers | |
2013-05-24 | Initialize wide struct info. | Ondrej Bilka | |
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. | |||
2013-04-15 | Fix off-by-one bug in tst-fwrite-error | Siddhesh Poyarekar | |
tst-fwrite-error did not allocate enough space for the string 'world' and its NULL terminator. Fixed. | |||
2013-02-07 | Remove lots of inline keywords. | Roland McGrath | |
2013-01-11 | Add --enable-hardcoded-path-in-tests configure option | H.J. Lu | |
2013-01-02 | Update copyright notices with scripts/update-copyrights. | Joseph Myers | |
2013-01-01 | Add script to update copyright notices and reformat some to facilitate its use. | Joseph Myers | |
2012-12-01 | [BZ #12724] libio: revert partial POSIX 2008 fclose support | Mike Frysinger | |
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> | |||
2012-11-28 | Make fwrite return 0 on EOF | Siddhesh Poyarekar | |
2012-11-16 | printf should return negative value on error | Siddhesh Poyarekar | |
[BZ #11741] Fixed bug where printf and family may return a spurious success when printing padded formats. | |||
2012-11-16 | Note in a comment that references to C++ bits are obsolete | Siddhesh Poyarekar | |
libio is not used by libstdc++ anymore, but there are references to streambuf are all over. | |||
2012-11-01 | Change type of constant to avoid a warning. | Thomas Schwinge | |
Warning has been introduced in commit 7583a88d1c7170caad26966bcea8bfc2c92093ba. | |||
2012-10-24 | Define and use $(run-built-tests). | Joseph Myers | |
2012-10-18 | Remove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h. | Joseph Myers | |
2012-10-10 | Remove _IO_pos_t. | Joseph Myers | |
2012-10-09 | Remove _G_off64_t and _G_stat64 from _G_config.h. | Joseph Myers | |
2012-09-28 | Don't flush write buffer for ftell | Siddhesh Poyarekar | |
[BZ #5298] Use write pointer state along with the file offset and/or the read pointers to get the current file position. | |||
2012-09-28 | Adjust wide data buffer pointers during fseek and ftell | Siddhesh Poyarekar | |
[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. | |||
2012-09-25 | Remove various _G_*_t type names. | Joseph Myers | |
2012-09-25 | Fix minor typos in comments | Siddhesh Poyarekar | |
2012-09-25 | Set "fail on error" mode directly in testsuite shell scripts | Dmitry V. Levin | |
2012-09-21 | Remove _G_HAVE_SYS_WAIT and _IO_HAVE_SYS_WAIT. | Joseph Myers | |
2012-09-20 | Remove _G_NEED_STDARG_H. | Joseph Myers | |
2012-09-17 | Remove _G_HAVE_IO_GETLINE_INFO. | Joseph Myers | |
2012-09-13 | Remove _G_HAVE_PRINTF_FP. | Joseph Myers | |
2012-09-10 | Remove _G_USING_THUNKS. | Joseph Myers | |
2012-09-10 | Remove libio C++ vtable definitions. | Joseph Myers | |
2012-09-10 | Run tst-fopenloc if $(build-shared) is yes | H.J. Lu | |
2012-09-05 | Fix typos in comments | Siddhesh Poyarekar | |
* libio/fileops.c: Fix typos in comments. * libio/oldfileops.c: Likewise. * libio/wfileops.c: Likewise. | |||
2012-09-04 | Fix iogetdelim.c (latent) integer overflow (bug 9914). | Joseph Myers | |
2012-08-17 | Make libio compile without _IO_MTSAFE_IO. | Roland McGrath | |
2012-08-17 | Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO. | Roland McGrath | |
2012-08-06 | Clean up lockf64, fseeko64, ftello64, fgetpos64, fsetpos64 for off64_t == off_t. | Roland McGrath | |
2012-08-01 | Clean up fopen64 for O_LARGEFILE==0. | Roland McGrath | |
2012-07-30 | Fix lots of bitrot for stub configurations. | Roland McGrath | |
2012-05-24 | Remove use of INTDEF/INTUSE in libio | Andreas Schwab | |
2012-05-12 | Avoid dup3 PLT usage. | Thomas Schwinge | |
Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c. | |||
2012-05-10 | Hurd: #include <kernel-features.h> | Thomas Schwinge | |
2012-05-03 | Fix conditions on checking versions of dprintf (bug 13775). | Joseph Myers | |
2012-04-29 | Fix attributes for fortify functions. | Marek Polacek | |