Memset fix in app-crypt/ssss
authorkristianf <devnull@localhost>
Wed, 25 Sep 2013 21:56:20 +0000 (23:56 +0200)
committerkristianf <devnull@localhost>
Wed, 25 Sep 2013 21:56:20 +0000 (23:56 +0200)
app-crypt/ssss/Manifest
app-crypt/ssss/files/02_memset.patch [new file with mode: 0644]
app-crypt/ssss/ssss-0.5.ebuild

index 4327437..3d1f079 100644 (file)
@@ -1,3 +1,4 @@
 AUX 01_remove_strip.patch 287 SHA256 ae07ba1ec4b42f7c76e50417d2bbd1cd4d54c99951a802b426478e4e39e82c98 SHA512 1c855367236a6706f1ce3875d35b9ccbda652eb95a780b122717d6e7064fd8222951c020be60709448dfe3738b789ab99433b867e13a0c8b6476e2e5f13185ce WHIRLPOOL f8dedc891b7a460a8de1fc66b0abdfd3e6770874137417ac2d7a184527d6fbdea50ca6eb171ac2a37337e08222f9d4c260b9369f667e97dbd6ea859bc81e320a
+AUX 02_memset.patch 400 SHA256 c4b7d9d1c8e3962feaee6e39574b8179cfe0754b3476c46c5b9b486a7b44ede9 SHA512 e23aae330fe54e2fa93a44bb7ec33f979f258f5896c38c775322e6f42b3775db8265cab080c99f6f88aa05af0c1b8ad20ec071f536aaaac87c585bb1c288da3d WHIRLPOOL 1ddf4cd0901193ab6d3e033cbb8ac934ee6ce2775dcb1dacf26d7165b3b3526d64fba3753b5935bb5d31f7352f2d97f78609bd77ffaa930c842026557453f870
 DIST ssss-0.5.tar.gz 17435 SHA256 5d165555105606b8b08383e697fc48cf849f51d775f1d9a74817f5709db0f995 SHA512 be8df1666ac61d4097b5fd54f2cee3640db8f85ec21411f1b208a35b671c5699bc692079525d8d313d1cf2500da31bfb03771829a9fdccc0bb6d806749526ec9 WHIRLPOOL 9b09fff49c948701b4bd676945eeec366bd52bd04ae64f3e5866a77c63226427d243276c75f553628545e4a18fd59b66fe466d866c15730ac06e818942ad452d
-EBUILD ssss-0.5.ebuild 555 SHA256 eb966d8f0d8535581944dce359864722608dbf63470744794176234e734705c4 SHA512 f04f210b38cdfe223006dcd68f9cd59e74630df0b304950b97c23f5b35f06d9b2c61ae0420ea8fafd2c04d273c873a970dd96b2d5f1c9b30443126eff9348fc7 WHIRLPOOL 9efc47f14912255b8d5dc0eabaeb7503a04648f9c56165e827d580596fa9edbf8b2fe9e14c7d3b9eda7b9dc9b53712d9e075f2791d0df93d15f10bc88508296c
+EBUILD ssss-0.5.ebuild 593 SHA256 0ff57e137e42d0aca0bb8818e61dd1463ab5e0bf641f56792775124b6da4adf3 SHA512 62115dd9ddc0af2b87c22981d49e7287555348c357229ab53a7f970dd05411a25b2284b1e3c7e59b726a7a489d790c252a3756c23d0f04c2b7b14b3d93b87f79 WHIRLPOOL 7e2215a903b51232dc992800bc227401ccc9893adba406a76a19fe19bc82820af48c53ddea62b49dda44074aedf47defe6e9cbb2fc207d5e4023bb26eb84b33b
diff --git a/app-crypt/ssss/files/02_memset.patch b/app-crypt/ssss/files/02_memset.patch
new file mode 100644 (file)
index 0000000..fcf74ee
--- /dev/null
@@ -0,0 +1,12 @@
+diff -r 452e9319b04f ssss.c
+--- a/ssss.c   Wed Sep 25 21:37:17 2013 +0200
++++ b/ssss.c   Wed Sep 25 21:50:33 2013 +0200
+@@ -171,7 +171,7 @@
+     size_t t;
+     unsigned int i;
+     int printable, warn = 0;
+-    memset(buf, degree / 8 + 1, 0);
++    memset(buf, 0, degree / 8 + 1);
+     mpz_export(buf, &t, 1, 1, 0, 0, x);
+     for(i = 0; i < t; i++) {
+       printable = (buf[i] >= 32) && (buf[i] < 127);
index 93fc1d8..7aac51e 100644 (file)
@@ -20,6 +20,7 @@ DEPEND="app-doc/xmltoman
 
 src_prepare(){
        epatch "${FILESDIR}/01_remove_strip.patch"
+       epatch "${FILESDIR}/02_memset.patch"
 }
 
 src_install(){