about summary refs log tree commit diff
path: root/stdio-common
Commit message (Collapse)AuthorAgeFilesLines
* Tighten up vfprintf width, precision, and total length overflow handling.David S. Miller2012-04-024-39/+131
| | | | | | | | | | | | | | | | With help from Paul Eggert, Carlos O'Donell, and Roland McGrath. * stdio-common/printf-parse.h (read_int): Change return type to 'int', return -1 on INT_MAX overflow. * stdio-common/vfprintf.c (vfprintf): Validate width and precision against overflow of INT_MAX. Set errno to EOVERFLOW when 'done' overflows INT_MAX. Check for overflow of in-format-string precision values properly. Use EOVERFLOW rather than ERANGE throughout. Use SIZE_MAX not INT_MAX for integer overflow test. * stdio-common/printf-parsemb.c: If read_int signals an overflow, skip the construct in the format string but do not record anything. * stdio-common/bug22.c: Adjust to test both width/prevision INT_MAX overflow as well as total length INT_MAX overflow. Check explicitly for proper errno values.
* Add _ITOA_NEEDED and _ITOA_WORD_TYPEH.J. Lu2012-03-212-2/+9
| | | | Add _ITOA_NEEDED and _ITOA_WORD_TYPE to override _itoa and _itowa.
* Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu2012-03-205-98/+6
|
* Replace FSF snail mail address with URL in miscellaneous files.Paul Eggert2012-03-101-3/+2
|
* Install bits/stdio_lim.h in install-headers.Joseph Myers2012-03-091-6/+1
|
* Clean up tst-fphex testUlrich Drepper2012-03-082-23/+14
|
* Merge branch 'master' of ssh://sourceware.org/git/glibcUlrich Drepper2012-03-083-19/+73
|\ | | | | | | | | Conflicts: ChangeLog
| * Enhance fphex test.Marek Polacek2012-03-083-19/+73
| |
* | Fix up long double fphex testMarek Polacek2012-03-081-7/+22
|/
* Remove distribute variable from MakefilesUlrich Drepper2012-03-071-3/+1
|
* Formatting fixesUlrich Drepper2012-03-061-13/+13
|
* Fix up long double fphex.Marek Polacek2012-03-062-1/+39
|
* 2012-03-02 Kees Cook <keescook@chromium.org>Kees Cook2012-03-051-3/+7
| | | | * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
* 2012-03-02 Kees Cook <keescook@chromium.org>Kees Cook2012-03-053-10/+118
| | | | | | | | [BZ #13656] * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and possibly allocate from heap instead of stack. * stdio-common/bug-vfprintf-nargs.c: New file. * stdio-common/Makefile (tests): Add nargs overflow test.
* Remove a spurious const in tst-fmemopen.Roland McGrath2012-02-271-1/+1
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-0980-240/+160
|
* Remove miscellaneous __STDC__ conditionals.Joseph Myers2012-01-301-2/+0
|
* Fix gets problemsUlrich Drepper2012-01-241-5/+1
|
* sscanf always calls reallocPaul Pluzhnikov2012-01-081-2/+2
|
* Remove pre-ISO C supportUlrich Drepper2012-01-071-10/+10
| | | | No more __const.
* Better gets prototype and fallout from removalUlrich Drepper2012-01-011-1/+6
|
* Fix extension of array in extended printf format handlingUlrich Drepper2011-12-171-7/+6
|
* isinf returns the sign of the number, use it in printf*Ulrich Drepper2011-10-083-23/+27
|
* Cleanup of configuration optionsUlrich Drepper2011-09-102-22/+14
| | | | Make several tool features mandatory and simplify the code.
* Fix boundary conditions in scanfUlrich Drepper2011-09-091-27/+97
| | | | | Allocate large buffers with realloc. When returning error make sure the stream is unlocked.
* Merge branch 'master' of ssh://sourceware.org/git/glibcUlrich Drepper2011-09-091-5/+5
| | | | | Conflicts: ChangeLog
* Add test for BZ 13114Ulrich Drepper2011-08-202-1/+27
|
* Quash some new warnings from GCC 4.6.Roland McGrath2011-06-101-2/+0
|
* Set stream errors in more casesUlrich Drepper2011-05-212-1/+7
| | | | Also avoid unnecessarily setting errno when testing for TTY.
* Fix allocation when handling positional parameters in printf.Petr Baudis2011-02-203-3/+25
|
* Conditionalize use of SIGRTMIN in psiginfo.Samuel Thibault2011-02-161-1/+6
|
* Fix two printf handler issues.Jakub Jelinek2011-02-152-7/+13
|
* Fix grouping when rounding increases number of integer digits.Ulrich Drepper2011-01-123-9/+102
|
* Always allow overwriting printf modifiers etc.Ulrich Drepper2010-12-241-7/+13
|
* psiginfo relied too much on sys_siglist.Ulrich Drepper2010-10-111-2/+21
|
* Unify psiginfo output.Ulrich Drepper2010-10-111-5/+6
|
* tst-fmemopen: Do not write test file in $srcdir.Roland McGrath2010-04-191-6/+12
|
* Fix printf format warning for si_band.Richard Henderson2010-03-261-1/+1
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* Add support for XPG7 testing.Ulrich Drepper2010-01-091-11/+11
| | | | | The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
* Avoid warning in scanf test.Ulrich Drepper2009-10-301-1/+0
|
* Implement mkstemps and mkstemps64.Ulrich Drepper2009-10-305-10/+11
|
* Check for integer overflows in formatting functionsAndreas Schwab2009-09-292-20/+40
|
* Print sign of NaN values.Ulrich Drepper2009-08-233-23/+122
|
* Preserve SSE registers in runtime relocations on x86-64.Ulrich Drepper2009-07-292-0/+2
| | | | | | | | | | SSE registers are used for passing parameters and must be preserved in runtime relocations. This is inside ld.so enforced through the tests in tst-xmmymm.sh. But the malloc routines used after startup come from libc.so and can be arbitrarily complex. It's overkill to save the SSE registers all the time because of that. These calls are rare. Instead we save them on demand. The new infrastructure put in place in this patch makes this possible and efficient.
* remove subsumed .gitignore entries and filesJim Meyering2009-05-161-8/+0
|
* remove mpn-copy.mk from .gitignore filesJim Meyering2009-05-161-1/+1
|
* remove COPYING* from .gitignore filesJim Meyering2009-05-161-1/+1
|
* rename each .cvsignore file to .gitignoreJim Meyering2009-05-151-0/+0
|
* * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):Ulrich Drepper2009-04-261-3/+3
| | | | Avoid warning by using may_alias attribute on ptrhack.
* * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.Ulrich Drepper2009-04-261-1/+1
| | | | | | | | | | | | | | | | | * sysdeps/i386/fpu/s_cosf.S: Likewise. * sysdeps/i386/fpu/s_cosl.S: Likewise. * sysdeps/i386/fpu/s_sin.S: Likewise. * sysdeps/i386/fpu/s_sinf.S: Likewise. * sysdeps/i386/fpu/s_sinl.S: Likewise. * sysdeps/ieee754/dbl-64/s_sin.c: Likewise. * sysdeps/ieee754/flt-32/s_cosf.c: Likewise. * sysdeps/ieee754/flt-32/s_sinf.c: Likewise. * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise. * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise. * sysdeps/x86_64/fpu/s_cosl.S: Likewise. * sysdeps/x86_64/fpu/s_sinl.S: Likewise. * math/libm-test.inc: Add tests for errno after sin/cos calls with ±Inf.