gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: check iban lower bound


From: gnunet
Subject: [taler-exchange] branch master updated: check iban lower bound
Date: Mon, 09 Aug 2021 18:36:35 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 617da748 check iban lower bound
617da748 is described below

commit 617da7485c5fac62ade5e08a83e67df103101864
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Aug 9 13:36:02 2021 -0300

    check iban lower bound
---
 src/util/payto.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/payto.c b/src/util/payto.c
index b8fd2e43..9a04f4c3 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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]