Enhance cpp/overflow-calculated - detect out-of-bounds write caused by passing the buffer size in bytes (using sizeof) instead of the number of elements to wcsftime, allowing the function to overrun the allocated buffer.
#5890
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: Check query IDs | |
| on: | |
| pull_request: | |
| paths: | |
| - "**/src/**/*.ql" | |
| - misc/scripts/check-query-ids.py | |
| - .github/workflows/check-query-ids.yml | |
| branches: | |
| - main | |
| - "rc/*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| name: Check query IDs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for duplicate query IDs | |
| run: python3 misc/scripts/check-query-ids.py |