summaryrefslogtreecommitdiffstats
path: root/main/lua5.2-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-07-11 15:53:26 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-07-11 15:53:26 +0300
commit15dc9d67da3baaba547994fca07248ad202e80cc (patch)
treef5ba43b5b2f949892c46cb962ae2e6c210d3b4f0 /main/lua5.2-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
parent22b4d9f5e400b61dad560d5a1e7a27acbac9b0e2 (diff)
downloadaports-15dc9d67da3baaba547994fca07248ad202e80cc.tar.bz2
aports-15dc9d67da3baaba547994fca07248ad202e80cc.tar.xz
main/aconf: moved from testing (with dependencies)
Diffstat (limited to 'main/lua5.2-b64/0001-b64-fix-segfault-caused-by-signed-char.patch')
-rw-r--r--main/lua5.2-b64/0001-b64-fix-segfault-caused-by-signed-char.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/lua5.2-b64/0001-b64-fix-segfault-caused-by-signed-char.patch b/main/lua5.2-b64/0001-b64-fix-segfault-caused-by-signed-char.patch
new file mode 100644
index 000000000..418a8321d
--- /dev/null
+++ b/main/lua5.2-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
+