Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zafl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
zafl
Commits
87f0128d
Commit
87f0128d
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup install
parent
359c6468
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
get-packages.sh
+9
-19
9 additions, 19 deletions
get-packages.sh
set_env_vars
+1
-2
1 addition, 2 deletions
set_env_vars
util/setup-afl.sh
+3
-0
3 additions, 0 deletions
util/setup-afl.sh
with
13 additions
and
21 deletions
get-packages.sh
+
9
−
19
View file @
87f0128d
#
# skeleton get-packages.sh
#
#
# do not need any additional packages above and beyond Zipr toolchain
# those packages will be installed separately
#
args
=
"
$@
"
if
[[
$args
=
""
]]
;
then
args
=
"all"
...
...
@@ -13,22 +22,3 @@ for arg in $args; do
;;
esac
done
# @todo: none of these are necessary?
# these were for building QEMU/afl but that's not a zfuzz concern
which apt-get
>
/dev/null 2>/dev/null
if
[
$?
-eq
0
]
;
then
PKGS
=
"libtool glib2.0-dev texinfo libtool-bin"
else
PKGS
=
"libtool glib2.0-dev texinfo"
fi
for
i
in
$PKGS
do
which apt-get
>
/dev/null 2>/dev/null
if
[
$?
-eq
0
]
;
then
sudo
apt-get
install
$i
-y
--force-yes
else
sudo
yum
install
$i
-y
--skip-broken
fi
done
This diff is collapsed.
Click to expand it.
set_env_vars
+
1
−
2
View file @
87f0128d
export ZFUZZ_HOME=`pwd`
export AFL_TRANSFORMS=$ZFUZZ_HOME/afl_transforms
export AFL_PATH=$ZFUZZ_HOME/afl
export PATH=$PATH:$AFL_PATH:$ZFUZZ_HOME/bin
export PATH=$PATH:$ZFUZZ_HOME/bin
export AFL_SKIP_BIN_CHECK=1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SECURITY_TRANSFORMS_HOME/lib
This diff is collapsed.
Click to expand it.
util/setup-afl.sh
+
3
−
0
View file @
87f0128d
...
...
@@ -16,6 +16,9 @@ if [ ! -e afl ]; then
make
# cd qemu_mode && ./build_qemu_support.sh
AFL_PATH
=
/home/tester/zafl_umbrella/zfuzz/afl
export
AFL_PATH
# afl wants this
sudo
$ZFUZZ_HOME
/util/afl_setup_core_pattern.sh
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment