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:
parent
48477d4a3e
commit
421aa1add1
6 changed files with 20 additions and 0 deletions
BIN
tests/functional/empty.nar
Normal file
BIN
tests/functional/empty.nar
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue