Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
bf1e52ab
Unverified
Commit
bf1e52ab
authored
Apr 14, 2021
by
Evgeny Vereshchagin
Committed by
Christian Brauner
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: switch to --enable-fuzzers
Signed-off-by:
Evgeny Vereshchagin
<
evvers@ya.ru
>
parent
06b14efd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
sanitizers.sh
.github/workflows/sanitizers.sh
+6
-1
sanitizers.yml
.github/workflows/sanitizers.yml
+1
-1
oss-fuzz.sh
src/tests/oss-fuzz.sh
+4
-3
No files found.
.github/workflows/sanitizers.sh
View file @
bf1e52ab
...
@@ -20,8 +20,13 @@ apt-get install --yes --no-install-recommends \
...
@@ -20,8 +20,13 @@ apt-get install --yes --no-install-recommends \
python3-setuptools rsync squashfs-tools uidmap unzip uuid-runtime
\
python3-setuptools rsync squashfs-tools uidmap unzip uuid-runtime
\
wget xz-utils
wget xz-utils
ARGS
=
"--enable-sanitizers --enable-tests --prefix=/usr/ --sysconfdir=/etc/ --localstatedir=/var/ --disable-no-undefined"
case
"
$CC
"
in
clang
*
)
ARGS
=
"
$ARGS
--enable-fuzzers"
esac
./autogen.sh
./autogen.sh
CFLAGS
=
"-Wall -Werror"
./configure
--enable-sanitizers
--enable-tests
--prefix
=
/usr/
--sysconfdir
=
/etc/
--localstatedir
=
/var/
--disable-no-undefined
CFLAGS
=
"-Wall -Werror"
./configure
$ARGS
make
make
make
install
make
install
...
...
.github/workflows/sanitizers.yml
View file @
bf1e52ab
...
@@ -17,4 +17,4 @@ jobs:
...
@@ -17,4 +17,4 @@ jobs:
-
name
:
Build
-
name
:
Build
run
:
|
run
:
|
sudo CC=${{ matrix.compiler }} .github/workflows/sanitizers.sh
sudo CC=${{ matrix.compiler }}
CXX=${{ matrix.compiler }}++
.github/workflows/sanitizers.sh
src/tests/oss-fuzz.sh
View file @
bf1e52ab
...
@@ -39,14 +39,15 @@ sed -i 's/^AC_CHECK_LIB(util/#/' configure.ac
...
@@ -39,14 +39,15 @@ sed -i 's/^AC_CHECK_LIB(util/#/' configure.ac
--disable-selinux
\
--disable-selinux
\
--disable-seccomp
\
--disable-seccomp
\
--disable-capabilities
\
--disable-capabilities
\
--disable-no-undefined
--disable-no-undefined
\
--enable-tests
\
--enable-fuzzers
make
-j
$(
nproc
)
make
-j
$(
nproc
)
for
fuzz_target_source
in
src/tests/fuzz-lxc
*
.c
;
do
for
fuzz_target_source
in
src/tests/fuzz-lxc
*
.c
;
do
fuzz_target_name
=
$(
basename
"
$fuzz_target_source
"
".c"
)
fuzz_target_name
=
$(
basename
"
$fuzz_target_source
"
".c"
)
$CC
-c
-o
"
$fuzz_target_name
.o"
$CFLAGS
-Isrc
-Isrc
/lxc
"
$fuzz_target_source
"
cp
"src/tests/
$fuzz_target_name
"
"
$OUT
"
$CXX
$CXXFLAGS
$LIB_FUZZING_ENGINE
"
$fuzz_target_name
.o"
src/lxc/.libs/liblxc.a
-o
"
$OUT
/
$fuzz_target_name
"
done
done
perl
-lne
'if (/config_jump_table\[\]\s*=/../^}/) { /"([^"]+)"/ && print "$1=" }'
src/lxc/confile.c
>
doc/examples/keys.conf
perl
-lne
'if (/config_jump_table\[\]\s*=/../^}/) { /"([^"]+)"/ && print "$1=" }'
src/lxc/confile.c
>
doc/examples/keys.conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment