libvncserver icon indicating copy to clipboard operation
libvncserver copied to clipboard

Fix aborts triggered by _FORTIFY_SOURCE

Open bk138 opened this issue 9 months ago • 0 comments

Both Android and Flatpak build systems by default use _FORTIFY_SOURCE=2 which causes aborts when using invalid sockets in FD_SET, FD_CLR and FD_ISSET, see https://www.gnu.org/software/libc/manual/html_node/Source-Fortification.html

  • [x] check for invalid sockets before FD_SET, FD_CLR and FD_ISSET
  • [ ] protect check and socket usage w/ mutex

bk138 avatar Mar 05 '25 09:03 bk138