Go to file
Will Newton a56ee40b17 malloc: Fix for infinite loop in memalign/posix_memalign.
A very large alignment argument passed to mealign/posix_memalign
causes _int_memalign to enter an infinite loop. Limit the maximum
alignment value to the maximum representable power of two to
prevent this from happening.

Changelog:

2013-10-30  Will Newton  <will.newton@linaro.org>

	[BZ #16038]
	* malloc/hooks.c (memalign_check): Limit alignment to the
	maximum representable power of two.
	* malloc/malloc.c (__libc_memalign): Likewise.
	* malloc/tst-memalign.c (do_test): Add test for very
	large alignment values.
	* malloc/tst-posix_memalign.c (do_test): Likewise.
2013-10-30 14:46:02 -07:00
argp Fix typos. 2013-08-29 09:11:45 +02:00
assert Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
benchtests Benchmark inputs for pow 2013-10-28 16:36:46 +05:30
bits Replace generic bits/socket.h with 4.4 file. 2013-08-27 10:33:15 -07:00
catgets Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
conf
conform conformtest: Clean up expectations for POSIX for sched.h. 2013-09-25 00:51:42 +00:00
crypt Fix typos. 2013-08-21 19:48:48 +02:00
csu BZ #15754: CVE-2013-4788 2013-09-23 00:52:09 -04:00
ctype Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
debug Fix typos. 2013-08-29 09:11:45 +02:00
dirent Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
dlfcn Remove --disable-versioning. 2013-09-04 15:25:42 +00:00
elf Print the reason why preloading failed in do_preload() 2013-10-20 10:34:09 +02:00
gmon Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
gnulib Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
grp Add --enable-hardcoded-path-in-tests configure option 2013-01-11 07:14:18 -08:00
gshadow Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
hesiod Link extra-libs consistently with libc and ld.so. 2013-05-31 16:16:33 +00:00
hurd Remove --disable-versioning. 2013-09-04 15:25:42 +00:00
iconv Fix typos. 2013-10-12 14:47:50 +02:00
iconvdata Fix typos. 2013-08-30 18:08:59 +02:00
include Make __ffs hidden 2013-09-20 21:25:31 +02:00
inet Fix inet_network("1 bar"). Fixes bug 15277. 2013-10-17 18:34:29 +02:00
intl Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
io Make stub lxstat64 call xstat64, like stub lxstat calls xstat. 2013-08-26 15:11:47 -07:00
libidn rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
libio Fix fwrite() reading beyond end of buffer in error path 2013-10-11 22:29:38 +05:30
locale Adjust language-code fields of LC_ADDRESS. 2013-10-24 11:43:38 -04:00
localedata Add ChangeLog entry and fix NEWS for #16078 2013-10-30 16:19:36 +05:30
login CVE-2013-2207, BZ #15755: Disable pt_chown. 2013-07-21 15:39:55 -04:00
mach Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
malloc malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
manual rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
math PowerPC floating point little-endian [4 of 15] 2013-10-04 10:32:48 +09:30
misc Fix error_tail overflow in allocation calculation. 2013-10-14 17:15:48 +02:00
nis Fix typos. 2013-08-30 18:08:59 +02:00
nptl rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
nptl_db Link extra-libs consistently with libc and ld.so. 2013-05-31 16:16:33 +00:00
nscd rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
nss Fix reads for sizes larger than INT_MAX in AF_INET lookup 2013-10-30 16:19:40 +05:30
po Update Chinese (traditional) translations. 2013-09-06 15:26:43 -04:00
ports rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
posix When glob pattern contains a trailing slash match only directories. Fixes bug 10278. 2013-10-20 10:03:19 +02:00
pwd Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
resolv Correctly copy resolver address. Fixes bug #13028. 2013-10-14 08:17:09 +02:00
resource Fix stub setrlimit implementation. 2013-05-06 14:58:00 -07:00
rt Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
scripts benchtests: Add include-sources directive. 2013-10-10 14:45:30 +03:00
setjmp Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
shadow Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
signal Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
socket Clean up __libc_sa_len helper. 2013-08-27 10:34:16 -07:00
soft-fp soft-fp: make extensions quiet signaling NaNs (bug 16041). 2013-10-17 12:36:02 +00:00
stdio-common Let tst-swscanf find its locale 2013-10-29 17:24:53 +01:00
stdlib Remove code from div that is by C99 obsolete. Fixes bug 15799 2013-10-30 16:08:12 +01:00
streams Fix typos. 2013-08-30 18:08:59 +02:00
string string/tester memrchr test 2013-10-04 10:42:15 +09:30
sunrpc Document rpcgen -5. Fixes bug 15825 2013-10-21 10:02:31 +02:00
sysdeps rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
sysvipc Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
termios Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
time Make strptime %Z consistent between doc and code. Fixes bug 14876 2013-10-25 19:05:24 +02:00
timezone Update zic from tzcode 2013b. 2013-03-13 01:54:00 +00:00
wcsmbs Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
wctype Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
.gitattributes
.gitignore drop ports ignore 2012-07-03 15:54:35 -04:00
abi-tags
aclocal.m4 rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
BUGS
CANCEL-FCT-WAIVE
CANCEL-FILE-WAIVE
ChangeLog malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16 Fix typo in name 2012-06-21 16:45:27 +02:00
ChangeLog.17 Revert "Sun agreed to a change of the license for the RPC code to a BSD-like license." 2010-06-27 19:34:03 -07:00
config.h.in rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
config.make.in Remove --disable-versioning. 2013-09-04 15:25:42 +00:00
configure rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
configure.ac rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
CONFORMANCE Move __STDC_* predefined macros from features.h to stdc-predef.h. 2012-02-22 12:53:04 +00:00
COPYING Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
COPYING.LIB Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
cppflags-iterator.mk
extra-lib.mk Remove --disable-versioning. 2013-09-04 15:25:42 +00:00
extra-modules.mk
INSTALL rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
libc-abis A few more archs have IFUNC support. 2010-03-17 02:43:12 -07:00
LICENSES Expand LICENSES file. 2012-12-05 21:56:15 +00:00
Makeconfig rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
Makefile rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
Makefile.in Add target bench-clean 2013-04-16 14:07:21 +05:30
Makerules Fix erroneous (and circular) implied pattern rule for linkobj/libc.so. 2013-10-03 10:38:14 -07:00
NAMESPACE
NEWS Use atomic operations to track memory. Fixes bug 11087 2013-10-30 16:25:21 +01:00
o-iterator.mk
PROJECTS
README Fix careless merge. 2013-10-07 09:58:30 +10:30
Rules Move bench target to benchtests 2013-04-12 15:01:44 +05:30
shlib-versions PowerPC LE configury 2013-10-04 10:42:27 +09:30
test-skeleton.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
version.h Open development for 2.19. 2013-08-12 13:43:14 -07:00
Versions.def hppa: add fanotify_mark 2013-09-02 23:22:24 -04:00
WUR-REPORT * posix/unistd.h (setuid, setreuid, seteuid, setresuid): 2012-08-01 18:12:58 +02:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 2.6.16 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

The code for other CPU configurations supported by volunteers outside of
the core glibc maintenance effort is contained in the `ports' add-on,
located in the `ports' subdirectory of the source tree.

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	am33*-*-linux-gnu	Not currently functional
	arm-*-linux-gnueabi
	hppa-*-linux-gnu	Not currently functional without patches.
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	tilegx-*-linux-gnu
	tilepro-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 2000-2013, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.