about summary refs log tree commit diff
path: root/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp
blob: 37b9219b2eac2473f9b64866f169ab7a23484347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
struct Env {
  // ... some struct fields ...
  Value* values[0];
};

// ....

if (env->type == Env::HasWithExpr) {
  // ...
  evalAttrs(*env->up, (Expr *) env->values[0], *v, noPos, "<borked>");
  //                  ^^^^^^^^^^^^^^^^^^^^^^^
}