VNC server app for Android that does not require root privileges.
GNU General Public License v2.0
1.22k
stars
177
forks
source link
Crash w/ "FORTIFY: pthread_mutex_destroy called on a destroyed mutex (0x<sanitized>)" #163
Open
bk138 opened 10 months ago
cl->updateMutex
is shutdownrfbClientConnectionGone()
must be called more than once per client :bomb:rfbClientConnectionGone()
occur in (unlikely/impossible crash candidatesstriked)inclientInput()
: https://github.com/LibVNC/libvncserver/blob/570d1bdee109d87ff50e9371879bcf6ca7490149/src/libvncserver/main.c#L611inrefuseOnHoldClient()
https://github.com/LibVNC/libvncserver/blob/570d1bdee109d87ff50e9371879bcf6ca7490149/src/libvncserver/main.c#L714rfbScreenCleanup()
https://github.com/LibVNC/libvncserver/blob/570d1bdee109d87ff50e9371879bcf6ca7490149/src/libvncserver/main.c#L1159sleep(2)
in clientInput() just before the rfbCloseSocket()inrfbShutdownServer()
https://github.com/LibVNC/libvncserver/blob/570d1bdee109d87ff50e9371879bcf6ca7490149/src/libvncserver/main.c#L1216cl->screen->backgroundLoop
is setrfbProcessEvents()
https://github.com/LibVNC/libvncserver/blob/570d1bdee109d87ff50e9371879bcf6ca7490149/src/libvncserver/main.c#L1283rfbNewTCPOrUDPClient()
after a failed websockets check https://github.com/LibVNC/libvncserver/blob/570d1bdee109d87ff50e9371879bcf6ca7490149/src/libvncserver/rfbserver.c#L482