!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1182 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org194 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Dec 2025
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaprobably it will trash the heap. like it will do on *BSD or Windows.01:01:59
@emilazy:matrix.orgemily on Windows it has a custom implementation with the native API and on BSD it'll use poll 01:02:52
@reckenrode:matrix.orgRandy EckenrodeWindows doesn’t use the same implementation. See the Old New Thing article.01:03:00
@emilazy:matrix.orgemilyit's only Darwin using this code path, and indeed it doesn't have checks https://gitlab.gnome.org/GNOME/glib/-/blob/ecef4b16cfe1a67f18c82f7b12f58241922c7b89/glib/gpoll.c#L54401:03:00
@ihar.hrachyshka:matrix.orgIhar Hrachyshkadocs don't promise / mention fd limits: https://docs.gtk.org/glib/func.poll.html01:03:07
@emilazy:matrix.orgemily well it is only select that has this footgun in the first place 01:03:32
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaindeed windows uses a different implementation. It uses same macro but ends up with a different code path.. :(01:04:41
@emilazy:matrix.orgemily https://gitlab.gnome.org/GNOME/glib/-/blob/ecef4b16cfe1a67f18c82f7b12f58241922c7b89/glib/gpoll.c#L544 doesn't bother doing any checks, but Darwin's FD_SET will do overflow checks by default (see sys/_types/_fd_def.h), but _DARWIN_UNLIMITED_SELECT adjusts the behaviour 01:04:43
@emilazy:matrix.orgemilyso I think this turns something likely caught at runtime into a potential vulnerability, on Darwin01:05:06

Show newer messages


Back to Room ListRoom Version: 6