-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use-after-free issue in rfbShutdownServer #211
Comments
|
@ateska I guess this happens when the server shuts down and a client disconnects the very same point in time? Or do you experience something different? Are you running a threaded server or not? |
|
The server is running in a dedicated thread. However, the mistake is obvious, it is likely caused by more strict heap management policy on iOS. The code obviously accesses the memory that has been free()d just few steps back. |

libvncserver/libvncserver/main.c
Line 1090 in 6814e94
See rfbClientIteratorNext (rfbClientIteratorNext:224) -
i->next = i->next->next;a memory that has been freed at the end of rfbClientConnectionGone() is accessed thru iterator.The text was updated successfully, but these errors were encountered: