Use malloc() instead of calloc() #35
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 2025 Leon Lynch | |
| # | |
| # This file is licensed under the terms of the LGPL v2.1 license. | |
| # See LICENSE file. | |
| ############################################################################## | |
| name: CodeQL | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ "master" ] | |
| schedule: | |
| - cron: '15 4 20 * *' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 360 | |
| permissions: | |
| security-events: write | |
| packages: read | |
| actions: read | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libmbedtls-dev libboost-locale-dev iso-codes libjson-c-dev libpcsclite-dev qtbase5-dev | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: c-cpp | |
| build-mode: manual | |
| queries: security-and-quality | |
| - name: Build | |
| run: | | |
| cmake -B build \ | |
| -DCMAKE_BUILD_TYPE="Debug" \ | |
| -DBUILD_EMV_DECODE=YES \ | |
| -DBUILD_EMV_TOOL=YES \ | |
| -DBUILD_EMV_VIEWER=YES | |
| cmake --build build -j 4 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |