musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker 6ed791e768 fix FILE buffer underflow in ungetwc
commit 7e816a6487 (version 1.1.11
release cycle) moved the code that performs wchar_t to multibyte
conversion across code that used the resulting length in bytes,
thereby breaking the unget buffer space check in ungetwc and
clobbering up to three bytes below the start of the buffer.

for allocated FILEs (all read-enabled FILEs except stdin), the
underflow clobbers at most the FILE-specific locale pointer. no stores
are performed through this pointer, but subsequent loads may result in
a crash or mismatching encoding rule (UTF-8 multibyte vs byte-based).

for stdin, the buffer lies in .bss and the underflow may clobber
another object. in practice, for libc.so the adjacent object seems to
be stderr's buffer, which is completely unused, but this could vary
with linking options, or when static linking.

applications which do not attempt to use more than one character of
ungetwc pushback, or which do not use ungetwc, are not affected.
2016-04-26 15:26:40 -04:00
arch add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
crt add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include add MADV_FREE madvise command from linux v4.5 2016-03-19 11:31:24 -04:00
ldso generalize mips-specific reloc code not to hard-code sym/type encoding 2016-03-06 17:25:52 +00:00
src fix FILE buffer underflow in ungetwc 2016-04-26 15:26:40 -04:00
tools add CFI generation script for x86_64 2015-10-13 18:09:46 -04:00
.gitignore support out-of-tree build 2016-01-17 16:34:43 -05:00
configure add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
COPYRIGHT fix outdated pathnames in COPYRIGHT file 2016-03-18 23:46:41 -04:00
INSTALL update documentation files for mips64 port 2016-03-06 17:48:58 +00:00
Makefile generate list of crt files to install instead of hard-coding in makefile 2016-02-19 14:16:33 -05:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
VERSION release 1.1.14 2016-02-22 00:07:05 -05:00
WHATSNEW release 1.1.14 2016-02-22 00:07:05 -05:00

    musl libc

musl, pronounced like the word "mussel", is an MIT-licensed
implementation of the standard C library targetting the Linux syscall
API, suitable for use in a wide range of deployment environments. musl
offers efficient static and dynamic linking support, lightweight code
and low runtime overhead, strong fail-safe guarantees under correct
usage, and correctness in the sense of standards conformance and
safety. musl is built on the principle that these goals are best
achieved through simple code that is easy to understand and maintain.

The 1.1 release series for musl features coverage for all interfaces
defined in ISO C99 and POSIX 2008 base, along with a number of
non-standardized interfaces for compatibility with Linux, BSD, and
glibc functionality.

For basic installation instructions, see the included INSTALL file.
Information on full musl-targeted compiler toolchains, system
bootstrapping, and Linux distributions built on musl can be found on
the project website:

    http://www.musl-libc.org/