Fork of Lix to retain it clean from idiot AI sloppers
Something went wrong. Try again.
libutil: fix nar parser buffer overflow master
string data shares a buffer with the binary string length field. size calculations for string read buffers always include the length field; sufficiently large length fields can cause these calculations to wrap. a malicious nar could use this for OOB writes in the daemon (as root). since we use strings only as tags for archive members and for symlinks with their OS-dependent length limits we can simply limit string size. 1 MiB should be sufficient for all symlinks, and tags are always tiny. Change-Id: I89fb05f73c1dbeda45d91244aba4cd526a3d83e1
Author eldritch horrors Committer Raito Bezarius Date (May 4, 2026, 5:00 PM UTC) Commit 2f7d7444 2f7d7444f128f5dad40dd436960efee2b2aaffe4 Parent c5954770 c5954770021e1df67234281ec7c1358a8ed862e6