C Code Review Guide¶
Review Priorities¶
- Memory safety (allocation/free correctness).
- Boundary checks for arrays/buffers.
- Null checks before dereference.
- Error-path cleanup and return codes.
Checklist¶
- Any potential buffer overflow?
- Any uninitialized variable read?
- Any missing free in failure path?
- Any undefined behavior in pointer arithmetic?
Summary¶
In C, safety and correctness checks must be explicit.