mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
fromJSON/fromTOML: throw if string contains null byte
This commit is contained in:
parent
ab5a9cf2db
commit
3a9d64b8e3
12 changed files with 60 additions and 3 deletions
|
@ -0,0 +1,8 @@
|
|||
error:
|
||||
… while calling the 'fromJSON' builtin
|
||||
at /pwd/lang/eval-fail-fromJSON-keyWithNullByte.nix:1:1:
|
||||
1| builtins.fromJSON ''{"a\u0000b": 1}''
|
||||
| ^
|
||||
2|
|
||||
|
||||
error: input string 'a␀b' cannot be represented as Nix string because it contains null bytes
|
Loading…
Add table
Add a link
Reference in a new issue