Files
lix/lix
Florian KlinkandRaito Bezarius 351dbdfdca 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
(cherry picked from commit 6c7ccc2588)
2026-04-27 13:24:38 +00:00
..
2026-04-07 14:06:19 +00:00
2026-03-17 13:43:50 +00:00
2026-03-05 19:11:45 +01:00
2026-03-18 17:43:01 +00:00
2026-01-30 17:29:51 +00:00
2026-01-30 17:29:51 +00:00
2025-07-14 18:20:47 -07:00