tvl-depot/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
243 B
C++
Raw Normal View History

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