diff options
author | Sverker Eriksson <[email protected]> | 2019-05-27 20:44:54 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-05-28 17:34:52 +0200 |
commit | 240acb9617f54761c820bb9a296a2e0256ed83a9 (patch) | |
tree | 47c5b27de58684db5a06a5bcc3b67b9408072ca6 /erts/emulator/beam | |
parent | 1b306c8a0755aca9de55fee2b02e38d17b696dfd (diff) | |
download | otp-240acb9617f54761c820bb9a296a2e0256ed83a9.tar.gz otp-240acb9617f54761c820bb9a296a2e0256ed83a9.tar.bz2 otp-240acb9617f54761c820bb9a296a2e0256ed83a9.zip |
erts: Fix seq_trace:print/2 for arbitrary labels
Would raise badarg if Label was not atom or small integer.
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_bif_trace.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_bif_trace.c b/erts/emulator/beam/erl_bif_trace.c index 97e869f5a3..8a4f744b2c 100644 --- a/erts/emulator/beam/erl_bif_trace.c +++ b/erts/emulator/beam/erl_bif_trace.c @@ -2060,10 +2060,7 @@ BIF_RETTYPE seq_trace_print_2(BIF_ALIST_2) if (have_no_seqtrace(SEQ_TRACE_TOKEN(BIF_P))) { BIF_RET(am_false); } - if (!(is_atom(BIF_ARG_1) || is_small(BIF_ARG_1))) { - BIF_ERROR(BIF_P, BADARG); - } - if (SEQ_TRACE_TOKEN_LABEL(BIF_P) != BIF_ARG_1) + if (!EQ(BIF_ARG_1, SEQ_TRACE_TOKEN_LABEL(BIF_P))) BIF_RET(am_false); seq_trace_update_send(BIF_P); seq_trace_output(SEQ_TRACE_TOKEN(BIF_P), BIF_ARG_2, |