diff --git a/.github/workflows/build_ossfuzz.yml b/.github/workflows/build_ossfuzz.yml new file mode 100644 index 0000000..ead0455 --- /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/libevtx + cp projects/libyal/build.sh projects/libevtx/ + cp projects/libyal/project.yaml projects/libevtx/ + head -n 20 projects/libyal/Dockerfile > projects/libevtx/Dockerfile + echo "RUN git clone --depth 1 https://github.com/libyal/libevtx.git libevtx" >> projects/libevtx/Dockerfile + tail -n 3 projects/libyal/Dockerfile >> projects/libevtx/Dockerfile + python3 infra/helper.py build_image --pull libevtx + python3 infra/helper.py build_fuzzers --sanitizer address libevtx + python3 infra/helper.py check_build libevtx 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 ea49131..1df3a8a 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 4957c4f..2623180 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ([2.71]) AC_INIT( [libevtx], - [20240602], + [20240629], [joachim.metz@gmail.com]) AC_CONFIG_SRCDIR( diff --git a/libevtx.ini b/libevtx.ini index c2d7fad..7f21e28 100644 --- a/libevtx.ini +++ b/libevtx.ini @@ -4,7 +4,7 @@ status: "alpha" year_of_creation: "2011" data_format: "Windows XML Event Log (EVTX)" documentation_url: "https://github.com/libyal/libevtx/tree/main/documentation" -features: ["debug_output"] +features: ["debug_output", "ossfuzz", "python_bindings", "tools"] [dtFabric] data_types: { @@ -25,6 +25,7 @@ data_types: { }} [library] +features: ["pthread", "wide_character_type"] public_types: ["file", "record", "template_definition"] [tools]