fix: Prevent double-freeing png_struct members on allocation failure
#4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (C) 2025 Cosmin Truta | |
| # SPDX-License-Identifier: MIT-0 | |
| name: Verifying libpng on Linux | |
| on: | |
| push: | |
| branches: | |
| - libpng16 | |
| - libpng18 | |
| pull_request: | |
| branches: | |
| - libpng16 | |
| - libpng18 | |
| jobs: | |
| verify-linux: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends build-essential zlib1g-dev | |
| if [[ "${{ github.ref }}" != refs/*/libpng16 && "${{ github.base_ref }}" != libpng16 ]] | |
| then | |
| sudo apt-get install -y --no-install-recommends autoconf automake libtool m4 | |
| fi | |
| - name: Check out the code | |
| uses: actions/checkout@v4 | |
| - name: Run the configure verification script | |
| run: bash ./ci/ci_verify_configure.sh | |
| env: | |
| CI_MAKE_FLAGS: -j2 | |
| CI_SANITIZERS: address,undefined |