-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Found and fixed: * Fix typos in Renesas demo * Fix uninitialized variable reads * Fix redundant condition * Fix argument checks * Fix some null ptr dereferences * Fix ambiguous statement
- Loading branch information
Showing
9 changed files
with
128 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Cppcheck Test | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
run_cppcheck: | ||
name: Cppcheck | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install cppcheck | ||
if: always() | ||
run: sudo apt-get install cppcheck | ||
|
||
- name: Run CppCheck | ||
id: cpp_check_run | ||
if: always() | ||
run: > | ||
cppcheck | ||
-UWSCPFILEHDR -UXSNPRINTF | ||
-DLIBWOLFSSH_VERSION_STRING='""' | ||
--enable='warning,portability' | ||
--std=c99 | ||
--force | ||
--check-level=exhaustive | ||
--error-exitcode=2 | ||
--library=std.cfg | ||
--inline-suppr | ||
-j4 | ||
-q | ||
. | ||
3>&1 1>&2 2>&3 | tee cppcheck.txt | ||
- name: Upload cppcheck results as artifact | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolfssh-${{ github.sha }}-cppcheck_results.txt | ||
path: cppcheck.txt |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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