You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rewrites pre-commit hook from 7 basic checks to 11, adding
compiler-based syntax verification, security pattern detection, and
expanded banned function enforcement. All checks now operate on staged
index content via a materialized temp tree.
New checks:
- Compiler -fsyntax-only pass (Linux only) with -Werror for format
strings, implicit declarations, pointer type mismatches, and VLA
- Security pattern scan on newly-added lines: non-literal format
strings, missing O_CLOEXEC, positive errno returns, unchecked
malloc multiplication, unbounded scanf, thread-unsafe functions
- Expanded banned function list (13 functions)
- Whitespace error detection via git diff --check
- TODO/FIXME enforcement on new lines
Change-Id: Ic25657aaee3df44b155e92ae69e695c1c139f546
0 commit comments