nicm / fdm

fdm source code
269 stars 50 forks source link

[Bug] A UAF bug in connect.c #126

Closed ShangzhiXu closed 1 year ago

ShangzhiXu commented 1 year ago

In this file, at line 553-554, it looks like this

    xfree(line);
    xasprintf(cause, "unexpected data: %s", line);

the line is freed, but then used in the next line, it may lead to output unexpected content or even lead to crash

nicm commented 1 year ago

Fixed, thanks!