From rswindell@VERT to CVS commit on Thu Oct 25 02:08:29 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
Ragnarok
Sat Sep 13 04:32:13 2025
from
Dock Sud
via
Telnet
Gus8027
Sat Sep 13 03:35:28 2025
from
Buenos Aies
via
Telnet
Ragnarok
Sat Sep 13 01:51:04 2025
from
Dock Sud
via
HTTP
Ragnarok
Sat Sep 13 01:50:17 2025
from
Dock Sud
via
SSH
Guest
Sat Sep 13 00:25:47 2025
from
Linuxshell
via
Raw
Damian Kleiman
Fri Sep 12 22:55:56 2025
from
Rosario, Sf
via
Telnet
Ragnarok
Fri Sep 12 09:09:14 2025
from
Dock Sud
via
NNTP
Ragnarok
Thu Sep 11 20:41:27 2025
from
Dock Sud
via
SSH
Damian Kleiman
Thu Sep 11 00:01:30 2025
from
Rosario, Sf
via
Telnet
Ragnarok
Wed Sep 10 22:41:23 2025
from
Dock Sud
via
SSH