mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-14 21:32:49 -08:00
Buffer overrun problem in bignum_to_string() (integer_to_string.d)
This commit is contained in:
parent
c08f425c8a
commit
8399cc8d21
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ bignum_to_string(cl_object buffer, cl_object x, cl_object base)
|
|||
}
|
||||
str_size = mpz_sizeinbase(x->big.big_num, b);
|
||||
buffer = _ecl_ensure_buffer(buffer, str_size+1);
|
||||
if (str_size <= 64) {
|
||||
if (str_size <= 63) {
|
||||
char txt[64];
|
||||
mpz_get_str(txt, b, x->big.big_num);
|
||||
_ecl_string_push_c_string(buffer, txt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue