From 014507d4f0f8eadc296bf573c23ed0e13c015e84 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Wed, 26 Jun 2024 16:02:44 +0200 Subject: [PATCH] common BUGFIX avoid overflow ... even though it's harmless. --- src/ly_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ly_common.c b/src/ly_common.c index e2293bc39..766faf80e 100644 --- a/src/ly_common.c +++ b/src/ly_common.c @@ -74,7 +74,8 @@ ly_strncmp(const char *refstr, const char *str, size_t str_len) LY_ERR ly_strntou8(const char *nptr, size_t len, uint8_t *ret) { - uint8_t num = 0, dig, dec_pow; + uint8_t num = 0, dig; + uint16_t dec_pow; if (len > 3) { /* overflow for sure */