about summary refs log tree commit diff
path: root/tvix/castore/src
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2024-05-01T11·50+0000
committeredef <edef@edef.eu>2024-05-01T13·40+0000
commitaa53338ddbcf6a7c0173789c78608df50839e15b (patch)
treed06ba4f1810250764f7de4210e281c5346ad0992 /tvix/castore/src
parent2d7f4135ecf1187c7bad39bf18ebfddc76577e9b (diff)
test(tvix/castore/path): test the null byte case r/8057
Change-Id: Ia4ceaf56f6cb4d8ed1ad935c77b3898d711da73a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11568
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/castore/src')
-rw-r--r--tvix/castore/src/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/castore/src/path.rs b/tvix/castore/src/path.rs
index 4a6d82f68158..dfbf92232557 100644
--- a/tvix/castore/src/path.rs
+++ b/tvix/castore/src/path.rs
@@ -208,6 +208,7 @@ mod test {
     #[case::dotdot_middle("a/../b")]
     #[case::dot_end("a/b/.")]
     #[case::dotdot_end("a/b/..")]
+    #[case::null("fo\0o")]
     pub fn from_str_fail(#[case] s: &str) {
         s.parse::<PathBuf>().expect_err("must fail");
     }