cybersecurity · beginner · ~15 min
Check minimum input length before parsing.
Implement int enough_input(int size, int needed) returning 1 if size >= needed, else 0 — the guard a fuzz target uses before reading a fixed-size header.
int enough_input(int size, int needed) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.