cybersecurity · beginner · ~15 min · safe pentest lab

Minimum-size guard

Bail out on short fuzz input.

Challenge

Implement int size_guard(int size, int header_size) returning 1 if size >= header_size (enough input to read the header), else 0.

Starter code

int size_guard(int size, int header_size) {
    /* TODO */
    return 0;
}

Solve this exercise in the browser editor — compile and run against the test harness, no setup required.