Skip to content

Introduce format string checker #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Introduce format string checker #254

merged 1 commit into from
Mar 11, 2025

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Mar 11, 2025

Printf-style functions can sometimes have mismatched format strings, leading to unexpected behavior and potential security vulnerabilities. This commit introduces a tool called "fmtscan" that scans C source files, validates format strings, and performs preliminary spell checks. The tool is integrated into the Git pre-commit hook to ensure safer code practices.

Change-Id: Ia8ef8d00724a7a141172426eb9f8bf1c9dec2701

Printf-style functions can sometimes have mismatched format strings,
leading to unexpected behavior and potential security vulnerabilities.
This commit introduces a tool called "fmtscan" that scans C source
files, validates format strings, and performs preliminary spell checks.
The tool is integrated into the Git pre-commit hook to ensure safer code
practices.

Change-Id: Ia8ef8d00724a7a141172426eb9f8bf1c9dec2701
@jserv jserv merged commit 5d61cfd into master Mar 11, 2025
4 checks passed
@jserv jserv deleted the add-fmtscan branch March 11, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant