diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-01 07:26:39 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-01 07:26:39 +0000 |
commit | 232f31ca12a94eb9f51182955285a4474f876af7 (patch) | |
tree | 7643d2e3ccdf0323633e23f45aab5707ac871dff /vm_eval.c | |
parent | 8a098051c58446db8be3dcaea3447ce83e16df99 (diff) |
on-smash canary detection
In addition to detect dead canary, we try to detect the very moment
when we smash the stack top. Requested by k0kubun:
https://twitter.com/k0kubun/status/1085180749899194368
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -116,6 +116,7 @@ vm_call0_body(rb_execution_context_t *ec, struct rb_calling_info *calling, const int i; CHECK_VM_STACK_OVERFLOW(reg_cfp, calling->argc + 1); + vm_check_canary(ec, reg_cfp->sp); *reg_cfp->sp++ = calling->recv; for (i = 0; i < calling->argc; i++) { |