about summary refs log tree commit diff
path: root/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2023-09-07T12·02+0300
committerclbot <clbot@tvl.fyi>2023-09-07T12·05+0000
commit0f4eb908eccc0254f541d92c7d306ba0f5465a7e (patch)
tree7de5c0c7bca2120a7469bd325fa402c3185c69f8 /users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp
parente163656edd30816b8b2c3cedceef3169f9f5a453 (diff)
chore(tazjin/presentations): last minute changes to tvix-eval talk r/6562
Change-Id: I788a17f846b35f5635ed7a9ec0d3249b05653d44
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9273
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp')
-rw-r--r--users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp b/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp
index ee0ab4ab4117..37b9219b2eac 100644
--- a/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp
+++ b/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp
@@ -1,12 +1,12 @@
 struct Env {
-  Value * values[0];
-  // ... some more fields
+  // ... some struct fields ...
+  Value* values[0];
 };
 
 // ....
 
 if (env->type == Env::HasWithExpr) {
-  Value * v = allocValue();
-  evalAttrs(*env->up, (Expr *) env->values[0], *v, noPos, "<borked>");
   // ...
+  evalAttrs(*env->up, (Expr *) env->values[0], *v, noPos, "<borked>");
+  //                  ^^^^^^^^^^^^^^^^^^^^^^^
 }