1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Add tests for invalid file names in NARs

Note: in general, we rely on the OS to tell us if a name is invalid or
if two names normalize in the same way. But for security, we do want
to make sure that we catch '.', '..', slashes and NUL characters. (NUL
characters aren't really a security issue, but since they would be
truncated when we pass them to the OS, it would be canonicity problem.)
This commit is contained in:
Eelco Dolstra 2024-09-12 14:58:33 +02:00
parent 48477d4a3e
commit 421aa1add1
6 changed files with 20 additions and 0 deletions

BIN
tests/functional/empty.nar Normal file

Binary file not shown.