Skip to content

Commit

Permalink
Attempt to enable runtime size checks in a few configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Sep 25, 2024
1 parent 5e4865d commit 46179f9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,18 @@ jobs:
echo "VCPKG_TARGET_TRIPLET='x86-windows'" >> $GITHUB_ENV
echo "CMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" >> $GITHUB_ENV
- name: Enable runtime size/length/offset validity checks
if: matrix.config.name == 'Debug'
run: |
echo "ENABLE_RUNTIME_SIZE_CHECKS=-DSPAROW_ENABLE_SIZE_CHECKS=ON"
- name: Enable runtime 32bit size/length/offset limit
if: matrix.target-arch.name == 'Win32' # Note: this is not a mandatory limitation in any context, we add this just to have at least one configuration testing that feature
run: |
echo "ENABLE_32bit_SIZE_LIMIT=-DSPAROW_ENABLE_32BIT_SIZE_LIMIT=ON"
- name: Configure using CMake
run: cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE:STRING=${{matrix.config.name}} -DCMAKE_PREFIX_PATH=$SPARROW_DEPS_PREFIX -DCMAKE_INSTALL_PREFIX=$SPARROW_INSTALL_PREFIX -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DUSE_DATE_POLYFILL=${{matrix.toolchain.date-polyfill}} -DBUILD_REFACTORING=${{matrix.toolchain.build_refactoring}} -G "${{matrix.build-system.name}}" $GENERATOR_EXTRA_FLAGS
run: cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE:STRING=${{matrix.config.name}} -DCMAKE_PREFIX_PATH=$SPARROW_DEPS_PREFIX -DCMAKE_INSTALL_PREFIX=$SPARROW_INSTALL_PREFIX -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DUSE_DATE_POLYFILL=${{matrix.toolchain.date-polyfill}} -DBUILD_REFACTORING=${{matrix.toolchain.build_refactoring}} -G "${{matrix.build-system.name}}" $GENERATOR_EXTRA_FLAGS $ENABLE_RUNTIME_SIZE_CHECKS $ENABLE_32bit_SIZE_LIMIT

- name: Build
if: matrix.toolchain.build_refactoring == 'ON'
Expand Down

0 comments on commit 46179f9

Please sign in to comment.