diff --git a/.github/workflows/build_ossfuzz.yml b/.github/workflows/build_ossfuzz.yml new file mode 100644 index 0000000..a4837b3 --- /dev/null +++ b/.github/workflows/build_ossfuzz.yml @@ -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/libscca + cp projects/libyal/build.sh projects/libscca/ + cp projects/libyal/project.yaml projects/libscca/ + head -n 20 projects/libyal/Dockerfile > projects/libscca/Dockerfile + echo "RUN git clone --depth 1 https://github.com/libyal/libscca.git libscca" >> projects/libscca/Dockerfile + tail -n 3 projects/libyal/Dockerfile >> projects/libscca/Dockerfile + python3 infra/helper.py build_image --pull libscca + python3 infra/helper.py build_fuzzers --sanitizer address libscca + python3 infra/helper.py check_build libscca diff --git a/.github/workflows/build_shared.yml b/.github/workflows/build_shared.yml index 44031f0..66d9b25 100644 --- a/.github/workflows/build_shared.yml +++ b/.github/workflows/build_shared.yml @@ -10,9 +10,6 @@ jobs: strategy: matrix: include: - - architecture: 'x64' - compiler: 'gcc' - configure_options: '' - architecture: 'x64' compiler: 'gcc' configure_options: '--enable-wide-character-type' diff --git a/appveyor.yml b/appveyor.yml index bd62e9c..6b0fd9d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -257,6 +257,9 @@ matrix: install: - cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] ( git clone https://github.com/libyal/vstools.git ..\vstools ) +- ps: If (($env:BUILD_ENVIRONMENT -eq "msbuild") -And (Test-Path ".\synctestdata.ps1")) { + .\synctestdata.ps1 } +- sh: if ( test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode" ) && test -f "./synctestdata.sh"; then ./synctestdata.sh; fi - sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew update-reset && brew update -q; fi - sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi - cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] ( diff --git a/configure.ac b/configure.ac index c133886..3effb11 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ([2.71]) AC_INIT( [libscca], - [20240608], + [20240821], [joachim.metz@gmail.com]) AC_CONFIG_SRCDIR( diff --git a/libscca.ini b/libscca.ini index cdb30d7..167b3a4 100644 --- a/libscca.ini +++ b/libscca.ini @@ -4,10 +4,11 @@ status: "alpha" year_of_creation: "2011" data_format: "Windows Prefetch File (SCCA)" documentation_url: "https://github.com/libyal/libscca/tree/main/documentation" -features: ["debug_output"] +features: ["debug_output", "ossfuzz", "python_bindings", "tools"] [library] description: "Library to access the Windows Prefetch File (PF) format" +features: ["pthread", "wide_character_type"] public_types: ["file", "file_metrics", "volume_information"] [tools]