/* Phase 19 (Track M.1) — class-method vuln fixture for C. * * C has no class system; the harness calls a free function whose name * follows the `_` convention (`UserService_run`). The * function piping `input` straight into `system(3)` is the SINK. */ #include #include #include void UserService_run(const char *input, size_t len) { (void)len; char buf[512]; snprintf(buf, sizeof(buf), "true %s", input ? input : ""); /* SINK: tainted input → system(3) */ system(buf); }