1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

tests: add test on function string_base64_decode with truncated base64 string

This commit is contained in:
Sébastien Helleu
2020-05-21 09:56:35 +02:00
parent a997893cfe
commit 99b13aa671
+3
View File
@@ -1839,6 +1839,9 @@ TEST(CoreString, Base64)
LONGS_EQUAL(length, string_base64_decode (str_base64[i][1], str));
STRCMP_EQUAL(str_base64[i][0], str);
}
/* invalid base64 string, missing two "=" at the end */
LONGS_EQUAL(4, string_base64_decode ("dGVzdA", str));
STRCMP_EQUAL("test", str);
}
/*