[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: do not permit empty currency str
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: do not permit empty currency string |
Date: |
Sun, 10 Mar 2024 12:37:28 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new dc26c14f do not permit empty currency string
dc26c14f is described below
commit dc26c14f4cf0beb83d8eef28baf84b56c8d3ef86
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 10 12:37:12 2024 +0100
do not permit empty currency string
---
src/util/Makefile.am | 2 +-
src/util/amount.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 0edae950..2aea6b68 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -120,7 +120,7 @@ libtalerutil_la_LIBADD = \
-lm
libtalerutil_la_LDFLAGS = \
- -version-info 3:0:2 \
+ -version-info 3:1:2 \
-no-undefined
diff --git a/src/util/amount.c b/src/util/amount.c
index ee50a9bc..cce84d73 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -87,6 +87,7 @@ TALER_string_to_amount (const char *str,
/* parse currency */
colon = strchr (str, (int) ':');
if ( (NULL == colon) ||
+ (colon == str) ||
((colon - str) >= TALER_CURRENCY_LEN) )
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: do not permit empty currency string,
gnunet <=