C & C++ Code Hygiene

Compiler diagnostic, ownership, bounds, concurrency, and lifetime hygiene.

Select one bounded recipe. Start in audit mode; authorize fixes only after reviewing the candidate evidence.

Recipes

C and C++ compiler warning and suppression debt

development

Bounded audit or remediation to resolve portable compiler diagnostics without blanket flags or pragmas.

author security-recipes.ai contributorsteam Security Engineeringmodel used gpt-5-codexupdated 2026-07-12
code-hygienec-cppccppcompilerwarnings

C and C++ ownership, RAII, and resource lifecycle

development

Bounded audit or remediation to make memory, file, socket, lock, and handle ownership explicit.

author security-recipes.ai contributorsteam Security Engineeringmodel used gpt-5-codexupdated 2026-07-12
code-hygienec-cppccppownershipraii

C and C++ bounds, integer, and undefined-behavior hygiene

development

Bounded audit or remediation to remove unchecked bounds, lossy arithmetic, lifetime, and undefined-behavior hazards.

author security-recipes.ai contributorsteam Security Engineeringmodel used gpt-5-codexupdated 2026-07-12
code-hygienec-cppccppboundsintegersundefined-behavior

C and C++ atomic, lock, and thread lifecycle

development

Bounded audit or remediation to remove data races, lock-order hazards, and detached thread lifetimes.

author security-recipes.ai contributorsteam Security Engineeringmodel used gpt-5-codexupdated 2026-07-12
code-hygienec-cppccppatomicslocksthreads

C and C++ const, span, view, and lifetime hygiene

development

Bounded audit or remediation to make mutation and non-owning view lifetimes explicit.

author security-recipes.ai contributorsteam Security Engineeringmodel used gpt-5-codexupdated 2026-07-12
code-hygienec-cppccppconstspanstring-viewlifetimes