Skip to content

Fix aborts triggered by _FORTIFY_SOURCE #655

@bk138

Description

@bk138

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions