Files
lix/tests/unit/libutil
eldritch horrorsandRaito Bezarius 667b40f1ff libutil: fix nar parser buffer overflow
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
2026-05-04 19:01:44 +02:00
..
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2025-03-27 08:56:14 +00:00
2024-11-18 12:31:19 -08:00
2025-04-03 18:40:06 -07:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2025-04-24 13:48:15 +00:00
2025-05-19 15:35:52 +02:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-03-26 16:44:04 -07:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00