!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

421 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.141 Servers

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


SenderMessageTime
28 Aug 2025
@helle:tacobelllabs.nethelle (just a stray cat girl)either stack or indefinitely growing the output array due to a lack of correct termination of the decode10:11:43
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Hm yeah seems to be growing a std::string in list called from dumpSingle 10:19:00
@piegames:flausch.socialpiegames
In reply to @xokdvium:matrix.org
For context, I was doing URL cleanups in CppNix and added validation code for this sort of thing. That seems to be fucked everywhere. Percent encoded NUL bytes are a menace
What the hell even is this percent encoding 👀
13:01:27
@piegames:flausch.socialpiegamesOh wait that's an URL encoding13:31:01
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @piegames:flausch.social
Oh wait that's an URL encoding
tomayto, tomahto
13:34:30
@piegames:flausch.socialpiegames Dunno, it's just that I forgot Nix uses URLs for Flakes here, so I was bracing for yet another ad-hoc escaping mechanism (the ones within the language are not well designed) 13:39:02
@aloisw:julia0815.dealoiswThere are also other places where shitty URL parsers that don't handle percent-encoding properly are used, for example the remote builders.15:22:44
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)In lix maybe, don't imagine this code was touched much since 2.1816:10:24
@aloisw:julia0815.dealoiswAre you saying this is fixed in nix?16:48:32
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Not entirely, but it's starting to look less scuffed now. Final beast to defeat is the invalid %2F decoding into /, which completely changes the meaning of flake references. 16:54:37
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)That stuff should round-trip, but doesn't16:55:27
@noob_tea:matrix.orgteahttps://github.com/NixOS/nix/pull/13708 has pretty neat performance gains, not sure about the tradeoffs involved.17:58:43

Show newer messages


Back to Room ListRoom Version: 10