This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository terminology.
View the commit online.
commit a0aa06c5aca683aeae40c01529cbb3cb77cace58
Author: Boris Faure <bill...@gmail.com>
AuthorDate: Sun Aug 20 15:16:58 2023 +0200
utils: add some error checks
---
src/bin/utils.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/bin/utils.c b/src/bin/utils.c
index 34b9418..3b58c2d 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -87,6 +87,8 @@ ty_eina_unicode_base64_encode(Eina_Unicode *unicode)
Eina_Strbuf *sb;
src = "" &utf8_len);
+ if (!src)
+ return NULL;
bb = eina_binbuf_manage_new((const unsigned char*)src, utf8_len, EINA_FALSE);
if (!bb)
{
@@ -114,6 +116,7 @@ int tytest_base64(void)
const char *terminology = "Terminology rox!";
src = "" NULL);
+ assert(src);
res = ty_eina_unicode_base64_encode(src);
assert(res);
expected = "VGVybWlub2xvZ3kgcm94IQ==";
@@ -124,6 +127,7 @@ int tytest_base64(void)
const char *hearts = "♥♡👍🚲✿ ❀ ❁🙌";
src = "" NULL);
+ assert(src);
res = ty_eina_unicode_base64_encode(src);
assert(res);
expected = "4pml4pmh8J+RjfCfmrLinL8g4p2AIOKdgfCfmYw=";
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.