diff options
author | Sebastian <sebasjm@gmail.com> | 2021-08-09 13:36:02 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-08-09 13:36:26 -0300 |
commit | 617da7485c5fac62ade5e08a83e67df103101864 (patch) | |
tree | 0a65d686d3da976c8e1bf0db30cf60c6793067dc /src/util | |
parent | c9d94e55bddf51da7b1d30096a2f717879ce2254 (diff) |
check iban lower bound
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/payto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/payto.c b/src/util/payto.c index b8fd2e43a..9a04f4c3c 100644 --- a/src/util/payto.c +++ b/src/util/payto.c @@ -359,6 +359,8 @@ validate_iban (const char *iban) unsigned int j; len = strlen (iban); + if (len < 4) + return GNUNET_strdup ("IBAN number too short to be valid"); if (len > 34) return GNUNET_strdup ("IBAN number too long to be valid"); memcpy (cc, iban, 2); |