Repository navigation
Prune parameter-free subtrees; reach param_source through the children hook #36
Workflow file for this run
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
| name: Guard Malloc | |
| on: | |
| push: | |
| branches: [main, development] | |
| pull_request: | |
| branches: [main, development] | |
| jobs: | |
| guard-malloc: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Configure | |
| run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build --config Debug | |
| # MallocScribble poisons freed memory (0x55), MallocGuardEdges adds | |
| # guard pages around large allocations, and leaks --atExit reports | |
| # memory still leaked at exit and fails the step if any is found. | |
| - name: Run tests under guard-malloc + leaks | |
| run: > | |
| MallocScribble=1 MallocGuardEdges=1 | |
| leaks --atExit -- ./build/all_tests |