libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

commit 5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb
parent a36227cae9c9983faad42f98c3aa79c7a0d863a0
Author: Mattias Andrée <maandree@kth.se>
Date:   Wed, 11 May 2016 16:12:04 +0200

zstr_length: do not validate the radix if ZAHL_UNSAFE is used

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
Msrc/zstr_length.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zstr_length.c b/src/zstr_length.c @@ -10,7 +10,7 @@ size_t zstr_length(z_t a, unsigned long long int radix) { size_t size_total = 1, size_temp; - if (radix < 2) + if (check(radix < 2)) libzahl_failure(-ZERROR_INVALID_RADIX); zset(num, a); while (!zzero(num)) {