[arch-commits] Commit in marisa/trunk (PKGBUILD fix-format-security.patch)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Sun May 29 16:17:12 UTC 2022
Date: Sunday, May 29, 2022 @ 16:17:12
Author: foutrelis
Revision: 1214764
Fix format security violation
Added:
marisa/trunk/fix-format-security.patch
Modified:
marisa/trunk/PKGBUILD
---------------------------+
PKGBUILD | 9 +++++++--
fix-format-security.patch | 22 ++++++++++++++++++++++
2 files changed, 29 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-29 16:16:40 UTC (rev 1214763)
+++ PKGBUILD 2022-05-29 16:17:12 UTC (rev 1214764)
@@ -9,12 +9,17 @@
url="https://github.com/s-yata/marisa-trie"
license=('BSD' 'LGPL')
makedepends=('python' 'ruby' 'perl' 'swig')
-source=("marisa-trie-$pkgver.tar.gz::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz")
-sha512sums=('c094e4b22e1457efdd20f2b978ee421b53e36ed94e4fdbd8944136c0ba23da4f6ba9fe3a2c64729c1426aee4dbe8098bfa5eebb943ae7fdaa4eec760485c564d')
+source=("marisa-trie-$pkgver.tar.gz::https://github.com/s-yata/marisa-trie/archive/v$pkgver.tar.gz"
+ fix-format-security.patch)
+sha512sums=('c094e4b22e1457efdd20f2b978ee421b53e36ed94e4fdbd8944136c0ba23da4f6ba9fe3a2c64729c1426aee4dbe8098bfa5eebb943ae7fdaa4eec760485c564d'
+ '3583f23c55ccd46cefbd757ef3f82dc7a90f14c64ecf69a99ab3467ca1e6aeddf9822be4c4dffcdbb8841d79fe116cfb8eff0e9b44abaadbcbf8d50a10ab1ec9')
prepare() {
cd marisa-trie-$pkgver
autoreconf -i
+
+ # https://github.com/s-yata/marisa-trie/pull/45
+ patch -Np1 -i ../fix-format-security.patch
}
build() {
Added: fix-format-security.patch
===================================================================
--- fix-format-security.patch (rev 0)
+++ fix-format-security.patch 2022-05-29 16:17:12 UTC (rev 1214764)
@@ -0,0 +1,22 @@
+From 5813d3b189512202b698aa4851e21b382acd003b Mon Sep 17 00:00:00 2001
+From: Xeonacid <h.dwwwwww at gmail.com>
+Date: Sat, 5 Feb 2022 08:51:43 +0800
+Subject: [PATCH] Fix format security
+
+---
+ bindings/ruby/marisa-swig_wrap.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bindings/ruby/marisa-swig_wrap.cxx b/bindings/ruby/marisa-swig_wrap.cxx
+index eae2304..ddc346d 100644
+--- a/bindings/ruby/marisa-swig_wrap.cxx
++++ b/bindings/ruby/marisa-swig_wrap.cxx
+@@ -1402,7 +1402,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
+ /* Error manipulation */
+
+ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
+-#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
++#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
+ #define SWIG_fail goto fail
+
+
More information about the arch-commits
mailing list