Skip to content

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.

Notifications You must be signed in to change notification settings

microsoft/checkedc-musl

Repository files navigation

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

About

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.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages