Commit Graph

13227 Commits

Author SHA1 Message Date
David S. Miller
df137ce8ce Fix v9/64-bit strcmp when string ends in multiple zero bytes.
[BZ #16885]
	* sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
	multiple zero bytes exist at the end of a string.
	Reported by Aurelien Jarno <aurelien@aurel32.net>

	* string/test-strcmp.c (check): Add explicit test for situations where
	there are multiple zero bytes after the first.
2014-05-01 15:19:02 -04:00
Carlos O'Donell
7def6a63a0 Don't parse %s format argument as multibyte string
2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>

            [BZ #6530]
            * stdio-common/vfprintf.c (process_string_arg): Revert
            2000-07-22 change.

2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>

            * stdio-common/Makefile (tst-sprintf-ENV): Set environment
            for testcase.
            * stdio-common/tst-sprintf.c: Include <locale.h>
            (main): Test sprintf's handling of incomplete multibyte
            characters.

(cherry picked from commit 715a900c90)
2014-01-30 13:19:58 -05:00
Andreas Schwab
1ba48eb07a Fix invalid memory access in do_lookup_x.
[BZ #13579] Do not free l_initfini and allow it to be reused
on subsequent dl_open calls for the same library. This fixes
the invalid memory access in do_lookup_x when the previously
free'd l_initfini was accessed through l_searchlist when a
library had been opened for the second time.

(cherry picked from commit 0479b305c5)
2014-01-30 13:05:40 -05:00
Ulrich Drepper
e8b5394afb Fix locking in fmtmsg
(cherry picked from commit 7724defcf8)
2014-01-30 02:18:43 -05:00
Ulrich Drepper
4a659bb814 Sort objects before relocations
(cherry picked from commit 6ee65ed6dd)
2014-01-30 01:05:58 -05:00
Maxim Kuvyrkov
9875bb2221 Fix race in free() of fastbin chunk: BZ #15073
Perform sanity check only if we have_lock.  Due to lockless nature of fastbins
we need to be careful derefencing pointers to fastbin entries (chunksize(old)
in this case) in multithreaded environments.

The fix is to add have_lock to the if-condition checks.  The rest of the patch
only makes code more readable.

	* malloc/malloc.c (_int_free): Perform sanity check only if we
	have_lock.

Conflicts:

	ChangeLog
	NEWS
2014-01-05 15:02:11 +13:00
Chris Metcalf
c8fb02d89e Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
(cherry picked from commit 3601428fb0)
2013-09-23 11:57:21 -04:00
Andreas Schwab
291392f02a Fix missing nearbyintl@GLIBC_2.1 on powerpc
(cherry picked from commit 412bd96612)
2012-12-01 18:36:33 +01:00
Andreas Schwab
b9584b603a Revert "2012-11-07 Andreas Jaeger <aj@suse.de>"
This reverts commit fc8c942ba4.

The issue has been fixed in the kernel.
2012-11-27 16:45:53 +01:00
Jeff Law
fc8c942ba4 2012-11-07 Andreas Jaeger <aj@suse.de>
[BZ #14809]
        * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
        (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
        guards are changed.  Only define if not yet defined, #undef back
        after including linux/sysctl.h if defined here.
(cherry picked from commit 01f34a3bd8)

Conflicts:
	ChangeLog
	NEWS
2012-11-13 09:22:33 +01:00
H.J. Lu
494251ab9f Define HAS_FMA with bit_FMA_Usable
cherry-pick 0569936773

Conflicts:
	ChangeLog
	NEWS
2012-10-04 07:28:33 -07:00
Joseph Myers
6d3997c51b Use size_t instead of int for internal variables in glob (bug 14621).
(cherry picked from commit b87c4b24d9)

Conflicts:

	ChangeLog
2012-09-27 21:40:59 +00:00
Joseph Myers
8a780f7f68 Fix strtod integer/buffer overflow (bug 14459).
(cherry picked from commit d6e70f4368)

Conflicts:

	ChangeLog
	NEWS
	stdlib/Makefile
2012-08-27 22:59:56 +00:00
Chris Metcalf
2fbd159a77 Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
(cherry picked from commit 3601428fb0)
2012-06-28 11:05:49 -04:00
Chris Metcalf
730ca05f09 Use include/sys/epoll.h to provide libc_hidden_proto for epoll_pwait().
(cherry picked from commit 463de86252)
2012-06-28 10:18:37 -04:00
Chris Metcalf
287f25ea2c Use <> brackets for not-cancel.h in sysdeps/unix/sysv/linux/grantpt.c.
(cherry picked from commit 540d7568ae)
2012-06-28 10:18:37 -04:00
Chris Metcalf
6c746d4f80 Update config.guess, config.sub from upstream config git repository.
(cherry picked from commit 607998afaa)
2012-06-28 10:18:36 -04:00
Chris Metcalf
3f0282ad25 Add Tile relocation types.
(cherry picked from commit 3ac8b282b6)
2012-06-28 10:18:36 -04:00
Joseph Myers
725b8ee08a Fix wordsize-64 cosh regression (bug 14273).
(cherry picked from commit b7abb4bf78)
2012-06-28 12:12:16 +00:00
Adhemerval Zanella
b640404bd8 Fix for wrong ldbl128-ibm fmodl commit
(cherry picked from commit 1b671feb61)
2012-06-25 23:14:10 +00:00
Adhemerval Zanella
c95a1e5f35 Fix ldbl128ibm fmodl for subnormals.
(cherry picked from commit 34ae0b3270)
2012-06-25 23:13:37 +00:00
Joseph Myers
2676061a91 Fix fmod for subnormals (bug 14048).
(cherry picked from commit c5bfe3d5ba)
2012-06-25 23:12:39 +00:00
Joseph Myers
3e5bea052b Fix x86 strcasecmp_l (bug 13786).
(cherry picked from commit 0bab47b6b2)
2012-06-25 21:43:15 +00:00
Carlos O'Donell
e0ca0a0f76 Regenerate libc.pot.
Enhance scripts/list-sources.sh to search glibc-ports
for translatable strings.

(backported from trunk)
2012-06-24 22:22:39 +00:00
Carlos O'Donell
91fdff8d85 Set default charset to UTF-8 for libc.pot.
(cherry picked from commit 771766df5a)
2012-06-24 22:19:22 +00:00
Joseph Myers
48f6b23f2b Backport LIBC_TRY_CC_OPTION and regenerate configure scripts. 2012-06-21 15:25:20 +00:00
Andreas Schwab
b7bd97fde1 Disable use of FMA instructions in branred
(cherry picked from commit 7998fa7899)
2012-05-25 07:19:49 -04:00
Joseph Myers
ddeb5e27dd Fix makefile/configure problems with sse2avx changes.
(cherry picked from commit 3b1004624e)
2012-05-25 07:09:15 -04:00
Ulrich Drepper
e3d5df796c Use -msse2avx option for x86-64 libm functions
(cherry picked from commit 56f6f6a240)
2012-05-25 07:05:35 -04:00
Ulrich Drepper
7cf8e20d03 Handle ARENA_TEST correctly
(cherry picked from commit 41b81892f1)
2012-05-24 20:46:22 -04:00
Chris Metcalf
60ff996420 Fix bug in firstversions.awk version range handling.
(cherry picked from commit e034841eac)
2012-05-18 17:44:05 -04:00
Carlos O'Donell
8d93c8972c BZ#14059: Fix AVX and FMA4 detection.
Fix AVX and FMA4 detection by following the guidelines
set out by Intel and AMD for detecting these features.

(cherry picked from commit 1a0994f535)
2012-05-18 16:22:54 -04:00
Ulrich Drepper
b934126eb2 Really fix AVX tests
There is no problem with strcmp, it doesn't use the YMM registers.
The math routines might since gcc perhaps generates such code.
Introduce bit_YMM_USBALE and use it in the math routines.

(cherry picked from commit 08cf777f9e)
2012-05-01 22:23:31 -04:00
Ulrich Drepper
c37ba8a260 Reset bit_AVX in __cpu_features is OS support is missing
(cherry picked from commit afc5ed09cb)
2012-05-01 22:15:39 -04:00
Richard Henderson
3088c58cbb Use <> for include of kernel-features.h.
(cherry-picked from commit af850b1c97)
2012-05-01 20:13:32 -04:00
David S. Miller
13ccceff48 Add O_FSYNC define to sparc just like other platforms.
(cherry-picked from commit fb59b3a4f5)
2012-05-01 15:52:33 -04:00
David S. Miller
c444059457 Fix ldbl-128 rintl/nearbyintl just like flt-32 variants.
* sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
	manipulate bits before adding and subtracting TWO112[sx].
	* sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.

(cherry-picked from commit a78bc6549c)
2012-05-01 14:21:27 -04:00
Joseph Myers
228abdc277 Fix rintf rounding.
(cherry-picked from commit fe45ce09f3)
2012-05-01 14:18:24 -04:00
Joseph Myers
e02cc8de8c Fix nearbyintf rounding.
(cherry-picked from commit 6cbeae4719)
2012-05-01 14:16:47 -04:00
Aurelien Jarno
21902de70d Use non-signaling floating-point comparisons in math functions.
(cherry-picked from commit 92221550d7)
2012-05-01 14:14:33 -04:00
David S. Miller
727675e0f7 Update long-double sparc math ULPs missed by previous changes.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
	* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.

(cherry picked from commit 586394099c)
2012-04-22 17:41:46 -04:00
Andreas Schwab
e1159da2d8 Reduce ldouble ULPs for jn tests on x86
(cherry picked from commit 06b99b0263)
2012-04-22 17:37:30 -04:00
Andreas Schwab
4904c344f1 Fix loss of precision in jn tests
(cherry picked from commit cfdc0dd7fa)
2012-04-22 17:32:43 -04:00
Thomas Schwinge
13ad7387d3 Fix x86 PLT slot usage for feraiseexcept.
Then we're elf/check-localplt.out-clean again.
2012-04-22 15:29:16 -04:00
Carlos O'Donell
3836d4d661 Redefine __i686 for use with older compilers.
This is a conservative fix for BZ #411 which is already fixed
on trunk. In this fix we don't touch any of the thunks or
do any other work other than to redefine the compiler define.
This is the minimum change required to build on a broader range
of distributions.
2012-04-22 12:06:09 -04:00
Ulrich Drepper
a316c1f682 Also update new programs 2012-01-01 07:16:32 -05:00
Ulrich Drepper
81fb02b046 Update copyright year 2012-01-01 05:50:05 -05:00
Jakub Jelinek
2ba92745c3 Fix up regcomp/regexec
The problem is that parse_bracket_symbol is miscompiled, and it turns
out it is because of an incorrect attribute on re_string_fetch_byte_case.
Unlike re_string_peek_byte_case, this one is really not pure, it modifies memory
(increments pstr->cur_idx), and with the pure attribute GCC assumed it doesn't
and it cached the presumed value of regexp->cur_idx in a variable across the
 for (;; ++i)
   {
     if (i >= BRACKET_NAME_BUF_SIZE)
       return REG_EBRACK;
     if (token->type == OP_OPEN_CHAR_CLASS)
       ch = re_string_fetch_byte_case (regexp);
     else
       ch = re_string_fetch_byte (regexp);
     if (re_string_eoi(regexp))
       return REG_EBRACK;
     if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
       break;
     elem->opr.name[i] = ch;
   }
2011-12-30 17:13:56 -05:00
Ulrich Drepper
c0da14cdda Preliminaries for 2.15 release 2011-12-23 14:03:55 -05:00
Marek Polacek
530a32499a Fix typos in comments 2011-12-23 13:59:40 -05:00