Understand the `canary` target system context
mainThe canary target is a single-file (~85 LOC) C command-line tool designed as a fast smoke-test target for the vuln-pipeline.
Key Characteristics:
- Functionality: Reads a file from
argv[1]into a 4 KB buffer and dispatches to one of three parser functions based on the first byte:'A'$\rightarrow$parse_alpha'B'$\rightarrow$parse_bravo'C'$\rightarrow$parse_charlie
- Build Environment: Built with
gcc -O1 -fsanitize=addressinside agcc:14Docker image. - Purpose: It is a crash-test fixture with deliberately planted bugs documented in the source comments and
README.md. It has no production deployment or CVE history.