Files
lix/lix/libstore
Florian Klink 6c7ccc2588 libcstore: Fix null deref in writeDebugInfo for non-directory NARs
When index-debug-info is enabled and the store path being copied is a
regular file (not a directory), std::get_if<nar_index::Directory>
returns nullptr since the NAR root is a File variant. The loop then
immediately dereferences buildIdDir->contents on the null pointer,
causing a segfault.

Add a null check at the top of the loop to break early when the NAR
root is not a directory.

Change-Id: I3a6e792b84cc12c837ecaddf4fee889e1bcb6397
2026-04-11 12:33:46 +00:00
..
2026-03-17 14:24:13 +01:00
2026-01-14 16:22:08 +00:00
2026-01-06 11:22:06 +00:00
2026-02-07 22:34:18 +01:00
2026-01-15 21:50:40 +00:00
2025-04-24 13:48:15 +00:00
2025-03-23 20:42:39 +00:00
2025-03-23 22:29:58 +00:00
2025-03-23 20:42:39 +00:00
2026-01-06 11:22:06 +00:00
2025-08-24 19:34:20 +02:00
2025-06-15 14:08:48 +00:00
2025-07-14 17:02:30 +00:00