This repo contains a version of musl that is being modified to Checked C. Checked C is an extension to C that adds checking to detect or prevent common programming errors such as out-of-bounds memory accesses.
Перейти к файлу
microsoft-github-policy-service[bot] e1aa4c127f
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-12 18:17:50 +00:00
arch fix incorrect SIGSTKFLT on all mips archs 2020-05-21 16:25:12 -04:00
compat/time32 fix null pointer dereference in setitimer time32 compat shim 2019-12-08 10:35:04 -05:00
crt remove unnecessary and problematic _Noreturn from crt/ldso startup 2019-06-25 19:05:40 -04:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include Made corrections to remove compiler warnings for some conversions in … (#16) 2021-01-22 10:27:02 -08:00
ldso have ldso track replacement of aligned_alloc 2020-06-10 22:02:45 -04:00
src Made corrections to remove compiler warnings for some conversions in … (#16) 2021-01-22 10:27:02 -08:00
tools fix incorrect escaping in add-cfi.*.awk scripts 2020-01-20 15:57:29 -05:00
.gitignore remove obsolete gitignore rules 2016-07-06 00:21:25 -04:00
.mailmap update contributor name 2019-12-07 12:21:35 -05:00
COPYRIGHT update COPYRIGHT year 2020-01-01 11:17:20 -05:00
INSTALL document mips r6 in INSTALL file 2019-09-27 00:22:48 -04:00
Makefile move oldmalloc to its own directory under src/malloc 2020-06-03 19:23:02 -04:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
README.md Update README.md 2020-10-22 22:10:19 -07:00
SECURITY.md Microsoft mandatory file 2023-06-02 17:05:23 +00:00
VERSION release 1.2.0 2020-02-20 19:37:02 -05:00
WHATSNEW release 1.2.0 2020-02-20 19:37:02 -05:00
configure suppress unwanted warnings when configuring with clang 2020-06-01 20:59:53 -04:00
dynamic.list Fix typos and alignment 2020-07-01 22:38:01 -07:00

README.md

About

This is a version of musl libc that has been converted to Checked C. The sources here have been mirrored from this repo. This version of musl is meant to compile with the checkedc-clang compiler.

Build musl with Checked C clang

export PATH=</path/to/checkedc-clang/bin>
TOP_DIR=/some/dir
cd $TOP_DIR
git clone https://github.com/microsoft/checkedc-musl.git src
mkdir build && cd build
CC=clang CFLAGS=-fPIC LDFLAGS=-fPIC ../src/configure --prefix=$PWD --disable-shared
make clean && make -j32 && make install

Test musl with libc-test

libc-test is meant to test musl. We have a version of libc-test called checkedc-libc-test that has been modified to test checkedc-musl. Refer to that repo for the build steps for checkedc-libc-test.

Note: Before building checkedc-libc-test make sure you set the following environment variable:

export MUSL_PATH=$TOP_DIR/build