danielga / gmsv_serversecure

A module for Garry's Mod that mitigates exploits on the Source engine.
https://github.com/danielga/gmsv_serversecure
Other
127 stars 31 forks source link

Segmentation fault when recvfrom is called on a socket that is not the game socket #68

Closed danielga closed 3 years ago

danielga commented 3 years ago

Host is Debian 10, x86-64, main branch of Garry's Mod. Issue seems to be triggered by calling the trampoline for recvfrom, hitting libpthread.so.0 Seems related to the changes for finding symbols by name only on POSIX platforms (dlsym(RTLD_DEFAULT, "symbol_name")). RTLD_NEXT works on Debian but RTLD_DEFAULT causes this crash while RTLD_DEFAULT works on Ubuntu but RTLD_NEXT seems to drop all packets.

danielga commented 3 years ago

Fixed on 62bdb21e8b5da1d715133f1857485ec45815123f