Skip to content

Potential fix for code scanning alert no. 3: Wrong type of arguments to formatting function#7

Merged
komozoi merged 2 commits into
masterfrom
alert-autofix-3-etc
May 7, 2026
Merged

Potential fix for code scanning alert no. 3: Wrong type of arguments to formatting function#7
komozoi merged 2 commits into
masterfrom
alert-autofix-3-etc

Conversation

@komozoi
Copy link
Copy Markdown
Owner

@komozoi komozoi commented May 7, 2026

Potential fix for https://github.com/komozoi/libexcessive/security/code-scanning/3

The fix is to make the format specifier for chunk->blockWidth match its actual type.

Best minimal fix (no behavior change except correct formatting): in src/alloc/SlabAllocator.cpp, line 336’s format string should use %lu for unsigned long instead of %i.

No new methods, definitions, or imports are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

komozoi and others added 2 commits May 7, 2026 03:46
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@komozoi komozoi marked this pull request as ready for review May 7, 2026 03:50
@komozoi komozoi merged commit 854e011 into master May 7, 2026
4 checks passed
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