You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a memory corruption error in DomTerm. This was in code imported from ttyd, which appears to have the same bug: The cmd_len value does not include space for the final nul. Alternatively, you could:
ts->command = xmalloc(cmd_len+1);
The second part of the patch is optional - it just seems strange to use sprintf there. Is there some reason for it?
FWIW Setting the null terminator in line 118 is redundant, since stpcpy sets it, assuming cmd_argc > 0 . (It might still be reasonable to set it, for clarity.)
I found a memory corruption error in DomTerm. This was in code imported from ttyd, which appears to have the same bug: The cmd_len value does not include space for the final nul. Alternatively, you could:
The second part of the patch is optional - it just seems strange to use
sprintf
there. Is there some reason for it?server-patch.txt
The text was updated successfully, but these errors were encountered: