musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker c718f9fc1b fix read past end of haystack buffer for short needles in memmem
the two/three/four byte memmem specializations are not prepared to
handle haystacks shorter than the needle; they unconditionally read at
least up to the needle length and subtract from the haystack length.
if the haystack is shorter, the remaining haystack length underflows
and produces an unbounded search which will eventually either crash or
find a spurious match.

the top-level memmem function attempted to avoid this case already by
checking for haystack shorter than needle, but it failed to re-check
after using memchr to remove the maximal prefix not containing the
first byte of the needle.
2016-04-01 13:36:15 -04:00
arch fix regression disabling use of pause instruction for x86 a_spin 2016-03-29 21:27:28 -04:00
crt add mips64 port 2016-03-06 17:41:56 +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 read past end of haystack buffer for short needles in memmem 2016-04-01 13:36:15 -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 make configure check for unsupported (SPE) powerpc hard-float models 2016-03-06 17:11:29 -05: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/