diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-30 22:09:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-30 22:09:32 +0900 |
| commit | 270ea41b376d82b9685746ea363f64cbc84e79c9 (patch) | |
| tree | 3a5349f88a626108dd3e0746b88ff8d6dc08e878 /src | |
| parent | 803bf010ca9a963abfab2ec348ae1c5c98f41bc2 (diff) | |
| download | mruby-270ea41b376d82b9685746ea363f64cbc84e79c9.tar.gz mruby-270ea41b376d82b9685746ea363f64cbc84e79c9.zip | |
method_missing() may have CALL_MAXARGS-1 arguments; fix #3351
The issue was reported by https://hackerone.com/ston3
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1143,6 +1143,9 @@ RETRY_TRY_BLOCK: else { value_move(regs+a+2, regs+a+1, ++n); regs[a+1] = sym; + if (n == CALL_MAXARGS) { + regs[a+1] = mrb_ary_new_from_values(mrb, n, regs+a+1); + } } } |
