diff options
author | Raimo Niskanen <[email protected]> | 2018-12-06 10:48:42 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-12-06 10:48:42 +0100 |
commit | 551e15331967551307b1618248334b20dce3241c (patch) | |
tree | 2983f705aa0672ad969ae5c6befd994bab783a46 /lib/asn1/c_src | |
parent | 111661b9500e2d499987d1f17bd08a5170131445 (diff) | |
parent | 63e436ae75584c885e4c66c08d5f33c68f67e69e (diff) | |
download | otp-551e15331967551307b1618248334b20dce3241c.tar.gz otp-551e15331967551307b1618248334b20dce3241c.tar.bz2 otp-551e15331967551307b1618248334b20dce3241c.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/asn1/c_src')
-rw-r--r-- | lib/asn1/c_src/asn1_erl_nif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/c_src/asn1_erl_nif.c b/lib/asn1/c_src/asn1_erl_nif.c index 797be6d4f8..da43af3405 100644 --- a/lib/asn1/c_src/asn1_erl_nif.c +++ b/lib/asn1/c_src/asn1_erl_nif.c @@ -999,7 +999,7 @@ static int ber_decode_value(ErlNifEnv* env, ERL_NIF_TERM *value, unsigned char * while (*ib_index < end_index) { if ((maybe_ret = ber_decode(env, &term, in_buf, ib_index, - *ib_index + len)) <= ASN1_ERROR + end_index )) <= ASN1_ERROR ) return maybe_ret; curr_head = enif_make_list_cell(env, term, curr_head); |