Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure up-to-date dependencies for Capstone Python bindings #12317

Merged
merged 6 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions projects/capstone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

FROM gcr.io/oss-fuzz-base/base-builder-python
RUN apt-get update && apt-get install -y make cmake
RUN git clone --depth 1 --branch v5 https://github.com/aquynh/capstone.git capstonev5
RUN git clone --depth 1 --branch next https://github.com/aquynh/capstone.git capstonenext
RUN pip3 install --upgrade setuptools build wheel pip
RUN git clone --depth 1 --branch v5 https://github.com/capstone-engine/capstone.git capstonev5
RUN git clone --depth 1 --branch next https://github.com/capstone-engine/capstone.git capstonenext
WORKDIR $SRC
COPY build.sh $SRC/
6 changes: 3 additions & 3 deletions projects/capstone/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#add next branch
for branch in v5 next
do
cd capstone$branch
cd $SRC/capstone$branch
# build project
mkdir build
# does not seem to work in source directory
Expand All @@ -33,7 +33,7 @@ do
(
export CFLAGS=""
export AFL_NOOPT=1
python3 setup.py install
python3 -m pip install .
)
cd $SRC/capstone$branch/suite
mkdir fuzz/corpus
Expand All @@ -53,5 +53,5 @@ do
fi
$CXX $CXXFLAGS $FUZZO -o $OUT/fuzz_disasm$branch libcapstone.a $LIB_FUZZING_ENGINE

cd ../../
python3 -m pip uninstall -y capstone
done