From rswindell@VERT to CVS commit on Wed Oct 24 22:08:00 2018
src/syncterm conn_telnet.c 1.11 1.12 term.c 1.341 1.342
Update of /cvsroot/sbbs/src/syncterm
In directory cvs:/tmp/cvs-serv2340
Modified Files:
conn_telnet.c term.c
Log Message:
Work-around race condition causing NULL-pointer dereference: telnet_input_thread() is started before cterm_init() is called, so the
global "cterm" pointer was (sometimes) NULL at the time that the input
thread received a "do termina-type" request, and telnet_interpret would dereference cterm (to get the emulation type) and thus crash. This is
an inelegant solution which halts the telnet_input_thread() until the
cterm pointer has been initialized. Also, be sure to reset cterm to
NULL after calling cterm_end() which free's it. This fixes the problem of
the telnet_input_thread() potentially using a stale (free'd) copy of cterm
for the terminal-type response on subsequent connects.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
Who's Online
Recent Visitors
Xlar54
Wed Sep 10 01:28:56 2025
from
Lewisburg Tn
via
Raw
Guest
Sat Sep 13 05:10:03 2025
from
N
via
Telnet
Guest
Wed Sep 24 07:21:01 2025
from
N
via
Raw
Jas Hud
Mon Nov 24 05:42:20 2025
from
Bbs.Eob-Bbs.Com
via
Raw