Skip to content

Commit

Permalink
Applied updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Aug 23, 2024
1 parent 0eb4557 commit 1e20dab
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_ossfuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Build OSSFuzz fuzz targets from source.
name: build_ossfuzz
on:
push:
branches: [main]
permissions: read-all
jobs:
build_ossfuzz:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- architecture: 'x64'
compiler: 'gcc'
configure_options: ''
steps:
- name: Install build dependencies
run: |
sudo apt-get -y install git
- uses: actions/checkout@v4
with:
repository: google/oss-fuzz
path: oss-fuzz
- name: Build OSSFuzz fuzz targets
working-directory: oss-fuzz
run: |
mkdir -p projects/libfmapi
cp projects/libyal/build.sh projects/libfmapi/
cp projects/libyal/project.yaml projects/libfmapi/
head -n 20 projects/libyal/Dockerfile > projects/libfmapi/Dockerfile
echo "RUN git clone --depth 1 https://github.com/libyal/libfmapi.git libfmapi" >> projects/libfmapi/Dockerfile
tail -n 3 projects/libyal/Dockerfile >> projects/libfmapi/Dockerfile
python3 infra/helper.py build_image --pull libfmapi
python3 infra/helper.py build_fuzzers --sanitizer address libfmapi
python3 infra/helper.py check_build libfmapi
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[libfmapi],
[20240519],
[20240823],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down
2 changes: 1 addition & 1 deletion libfmapi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "libfmapi"
status: "experimental"
year_of_creation: "2009"
documentation_url: "https://github.com/libyal/libfmapi/blob/main/documentation/"
features: ["debug_output"]
features: ["debug_output", "ossfuzz"]

[library]
description: "Library to support the MAPI data types"
Expand Down

0 comments on commit 1e20dab

Please sign in to comment.