Go to file
Stefan Liebler 28669f86f6 Fix segfault in maybe_script_execute.
If glibc is built with gcc 8 and -march=z900,
the testcase posix/tst-spawn4-compat crashes with a segfault.

In function maybe_script_execute, the new_argv array is dynamically
initialized on stack with (argc + 1) elements.
The function wants to add _PATH_BSHELL as the first argument
and writes out of bounds of new_argv.
There is an off-by-one because maybe_script_execute fails to count
the terminating NULL when sizing new_argv.

ChangeLog:

	* sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
	Increment size of new_argv by one.
2018-09-06 14:27:03 +02:00
argp
assert
benchtests Reallocate buffers for every run in strlen 2018-08-16 14:11:57 +05:30
bits
catgets
ChangeLog.old
conform Replace conform/list-header-symbols.pl with a Python script. 2018-08-31 21:19:51 +00:00
crypt
csu
ctype
debug __readlink_chk: Remove micro-optimization 2018-08-21 11:24:12 +02:00
dirent
dlfcn
elf Fix test failure with -DNDEBUG. 2018-08-30 12:33:22 -04:00
gmon
gnulib
grp [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
gshadow
hesiod
htl hurd: Add missing symbols for proper libc_get/setspecific 2018-08-08 01:55:04 +02:00
hurd hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
iconv
iconvdata
include Move float128 inlines from sysdeps/generic/math_private.h to include/math.h. 2018-09-05 11:53:35 +00:00
inet
intl
io Avoid running some tests if the file system does not support holes 2018-08-21 12:56:53 +02:00
libio
locale
localedata Indian and similar locales: Set the correct date format (bug 17426). 2018-09-05 23:57:11 +02:00
login
mach hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
malloc malloc: Add ChangeLog for accidentally committed change 2018-08-20 14:57:13 +02:00
manual Add --with-nonshared-cflags option to configure 2018-08-17 11:44:39 +02:00
math Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
mathvec
misc Avoid running some tests if the file system does not support holes 2018-08-21 12:56:53 +02:00
nis
nptl [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
nptl_db
nscd [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
nss [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
po Update translations for be. 2018-08-24 22:26:41 -04:00
posix regex: Add test tst-regcomp-truncated [BZ #23578] 2018-08-28 19:43:12 +02:00
pwd
resolv
resource
rt
scripts Use Linux 4.18 in build-many-glibcs.py. 2018-08-13 16:46:13 +00:00
setjmp
shadow
signal
socket
soft-fp
stdio-common error, warn, warnx: Use __fxprintf for wide printing [BZ #23519] 2018-08-14 17:54:49 +02:00
stdlib reallocarray: Declare under _DEFAULT_SOURCE 2018-08-30 14:14:53 +02:00
streams
string Speedup first memmem match 2018-08-28 12:42:19 +05:30
sunrpc
support test-container: Use xcopy_file_range for cross-device copy [BZ #23597] 2018-08-31 13:08:02 -07:00
sysdeps Fix segfault in maybe_script_execute. 2018-09-06 14:27:03 +02:00
sysvipc
termios
time
timezone Avoid running some tests if the file system does not support holes 2018-08-21 12:56:53 +02:00
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Fix segfault in maybe_script_execute. 2018-09-06 14:27:03 +02:00
config.h.in
config.make.in Add --with-nonshared-cflags option to configure 2018-08-17 11:44:39 +02:00
configure Add --with-nonshared-cflags option to configure 2018-08-17 11:44:39 +02:00
configure.ac Add --with-nonshared-cflags option to configure 2018-08-17 11:44:39 +02:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Add --with-nonshared-cflags option to configure 2018-08-17 11:44:39 +02:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Makeconfig: Do not sort and deduplicate +cflags [BZ # 17248] 2018-08-21 11:43:35 +02:00
Makefile Add test-in-container infrastructure. 2018-08-22 21:20:37 -04:00
Makefile.in
Makerules Add test-in-container infrastructure. 2018-08-22 21:20:37 -04:00
NEWS Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
o-iterator.mk
README
Rules Add test-in-container infrastructure. 2018-08-22 21:20:37 -04:00
shlib-versions
test-skeleton.c
version.h Open master branch for glibc 2.29 development 2018-08-01 01:35:02 -04: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.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 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:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-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., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.