diff options
author | Rutger Broekhoff | 2025-07-07 21:52:08 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2025-07-07 21:52:08 +0200 |
commit | ba61dfd69504ec6263a9dee9931d93adeb6f3142 (patch) | |
tree | d6c9b78e50eeab24e0c1c09ab45909a6ae3fd5db /test/testdata/eval-fail-bad-string-interpolation-4.nix | |
download | verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.tar.gz verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.zip |
Initialize repository
Diffstat (limited to 'test/testdata/eval-fail-bad-string-interpolation-4.nix')
-rw-r--r-- | test/testdata/eval-fail-bad-string-interpolation-4.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-bad-string-interpolation-4.nix b/test/testdata/eval-fail-bad-string-interpolation-4.nix new file mode 100644 index 0000000..457b5f0 --- /dev/null +++ b/test/testdata/eval-fail-bad-string-interpolation-4.nix | |||
@@ -0,0 +1,9 @@ | |||
1 | let | ||
2 | # Basically a "billion laughs" attack, but toned down to simulated `pkgs`. | ||
3 | ha = x: y: { a = x y; b = x y; c = x y; d = x y; e = x y; f = x y; g = x y; h = x y; j = x y; }; | ||
4 | has = ha (ha (ha (ha (x: x)))) "ha"; | ||
5 | # A large structure that has already been evaluated. | ||
6 | pkgs = builtins.deepSeq has has; | ||
7 | in | ||
8 | # The error message should not be too long. | ||
9 | ''${pkgs}'' | ||