There is a small bug in server.c:173
void ftp_mkd(Command *cmd, State *state)
{
char res[2*BSIZE+32];
...
state->message = res;
...
state->message = "550 Failed to create directory. Check path or permissions.\r\n"; // local address
...
write_state(state);
}
void write_state(State *state)
{
write(state->connection, state->message, strlen(state->message)); // bug location: read previous local address
}
ASAN

Reproduce
USER anonymous
PASS anonymous
MKD <filename> // filename should not be existed.
There is a small bug in server.c:173
ASAN

Reproduce