Skip to content

Commit

Permalink
Applied updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jul 8, 2024
1 parent afa2654 commit 9382ef6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 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/libfsrefs
cp projects/libyal/build.sh projects/libfsrefs/
cp projects/libyal/project.yaml projects/libfsrefs/
head -n 20 projects/libyal/Dockerfile > projects/libfsrefs/Dockerfile
echo "RUN git clone --depth 1 https://github.com/libyal/libfsrefs.git libfsrefs" >> projects/libfsrefs/Dockerfile
tail -n 3 projects/libyal/Dockerfile >> projects/libfsrefs/Dockerfile
python3 infra/helper.py build_image --pull libfsrefs
python3 infra/helper.py build_fuzzers --sanitizer address libfsrefs
python3 infra/helper.py check_build libfsrefs
3 changes: 0 additions & 3 deletions .github/workflows/build_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
strategy:
matrix:
include:
- architecture: 'x64'
compiler: 'gcc'
configure_options: ''
- architecture: 'x64'
compiler: 'gcc'
configure_options: '--enable-wide-character-type'
Expand Down
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(
[libfsrefs],
[20240522],
[20240708],
[joachim.metz@gmail.com])

AC_CONFIG_SRCDIR(
Expand Down
3 changes: 2 additions & 1 deletion libfsrefs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ name: "libfsrefs"
status: "experimental"
year_of_creation: "2012"
documentation_url: "https://github.com/libyal/libfsrefs/tree/main/documentation"
features: ["debug_output"]
features: ["debug_output", "ossfuzz", "tools"]

[library]
description: "Library to access the Resiliant File System (ReFS) format"
features: ["pthread", "wide_character_type"]
public_types: ["file_entry", "volume"]

[tools]
Expand Down

0 comments on commit 9382ef6

Please sign in to comment.