diff options
author | John Högberg <[email protected]> | 2019-03-22 09:38:58 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-03-22 09:38:58 +0100 |
commit | 83fb1f13596977beab8b426a23813d73d71f9c17 (patch) | |
tree | dbc163f3005164ad216b62c8206433ee24e12670 /erts/emulator/beam | |
parent | 4c744d0c81273c4c53a0dd267baf46a71814196e (diff) | |
parent | 8473827449cfb8de65709278b4a23bb1577b6a0a (diff) | |
download | otp-83fb1f13596977beab8b426a23813d73d71f9c17.tar.gz otp-83fb1f13596977beab8b426a23813d73d71f9c17.tar.bz2 otp-83fb1f13596977beab8b426a23813d73d71f9c17.zip |
Merge branch 'john/erts/fix-badarg-fixed_apply'
* john/erts/fix-badarg-fixed_apply:
erts: Include argument list on badarg in fixed_apply
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/beam_emu.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c index 04a2a83123..d68d021679 100644 --- a/erts/emulator/beam/beam_emu.c +++ b/erts/emulator/beam/beam_emu.c @@ -2310,12 +2310,16 @@ fixed_apply(Process* p, Eterm* reg, Uint arity, function = reg[arity+1]; if (is_not_atom(function)) { + Eterm bad_args; error: - p->freason = BADARG; - reg[0] = module; - reg[1] = function; - reg[2] = NIL; - return 0; + bad_args = make_arglist(p, reg, arity); + + p->freason = BADARG; + reg[0] = module; + reg[1] = function; + reg[2] = bad_args; + + return 0; } if (is_not_atom(module)) goto error; |