aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-01-04 02:37:06 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-01-04 02:39:14 +0100
commit4dcc1b1a73569f30ee25e558a5df3839b758d3dc (patch)
tree8a6cf5cfe906ab19c0432adfe0a8fc642271744c /main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
parent6072a809616b91d38ea7402c84f39e413f00daff (diff)
downloadaports-4dcc1b1a73569f30ee25e558a5df3839b758d3dc.tar.bz2
aports-4dcc1b1a73569f30ee25e558a5df3839b758d3dc.tar.xz
main/lua-b64: rename from lua5.2-b64 and add lua5.[23]-b64 subpkgs
Diffstat (limited to 'main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch')
-rw-r--r--main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch b/main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
new file mode 100644
index 0000000000..418a8321d1
--- /dev/null
+++ b/main/lua-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
@@ -0,0 +1,25 @@
+From 8b49d06375685d4dc0ddd71a9b7310663dc92d51 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 24 Feb 2014 11:25:28 +0100
+Subject: [PATCH] b64: fix segfault caused by signed char
+
+---
+ lua-b64.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lua-b64.c b/lua-b64.c
+index ce74481..cb03f4f 100644
+--- a/lua-b64.c
++++ b/lua-b64.c
+@@ -28,7 +28,7 @@ static const char *urlsafe_base64_tbl =
+ static int b64_encode_tbl(lua_State *L, const char *tbl)
+ {
+ size_t len, n = 0;
+- const char *src = luaL_checklstring(L, 1, &len);
++ const unsigned char *src = (const unsigned char *)luaL_checklstring(L, 1, &len);
+ luaL_Buffer dst;
+ unsigned int triplet = 0;
+ unsigned int pad;
+--
+1.8.5.4
+