commit | 014507d4f0f8eadc296bf573c23ed0e13c015e84 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Jun 26 16:02:44 2024 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Jun 26 16:02:44 2024 +0200 |
tree | ca809b4e7223b41f36fc51917ae4bb3cdd1db6df | |
parent | c5996dabaf921c9f52849775ad5c111b85d8de6b [diff] |
common BUGFIX avoid overflow ... even though it's harmless.
diff --git a/src/ly_common.c b/src/ly_common.c index e2293bc..766faf8 100644 --- a/src/ly_common.c +++ b/src/ly_common.c
@@ -74,7 +74,8 @@ 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 */