From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/samurai/files/, dev-util/samurai/
Date: Thu, 29 Apr 2021 19:41:29 +0000 (UTC) [thread overview]
Message-ID: <1619725261.05f98b2284e04f5078b8b38238d6688f9c76414b.polynomial-c@gentoo> (raw)
commit: 05f98b2284e04f5078b8b38238d6688f9c76414b
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 29 19:40:38 2021 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Apr 29 19:41:01 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f98b22
dev-util/samurai: Security revbump to fix mull pointer dereference
Removed old
Bug: https://bugs.gentoo.org/786957
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
.../files/samurai-1.2-null_pointer_fix.patch | 26 ++++++++++++++++++++++
.../{samurai-1.2.ebuild => samurai-1.2-r1.ebuild} | 4 ++++
2 files changed, 30 insertions(+)
diff --git a/dev-util/samurai/files/samurai-1.2-null_pointer_fix.patch b/dev-util/samurai/files/samurai-1.2-null_pointer_fix.patch
new file mode 100644
index 00000000000..fbc97b03d47
--- /dev/null
+++ b/dev-util/samurai/files/samurai-1.2-null_pointer_fix.patch
@@ -0,0 +1,26 @@
+From d2af3bc375e2a77139c3a28d6128c60cd8d08655 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Sun, 4 Apr 2021 03:50:09 -0700
+Subject: [PATCH] parse: Check for non-empty command/rspfile/rspfile_content
+
+This matches ninja behavior and prevents the possibility of a rule
+with an empty (NULL) command string.
+
+Fixes #68.
+---
+ parse.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/parse.c b/parse.c
+index f79a5ee..b4b98a1 100644
+--- a/parse.c
++++ b/parse.c
+@@ -42,6 +42,8 @@ parserule(struct scanner *s, struct environment *env)
+ var = scanname(s);
+ parselet(s, &val);
+ ruleaddvar(r, var, val);
++ if (!val)
++ continue;
+ if (strcmp(var, "command") == 0)
+ hascommand = true;
+ else if (strcmp(var, "rspfile") == 0)
diff --git a/dev-util/samurai/samurai-1.2.ebuild b/dev-util/samurai/samurai-1.2-r1.ebuild
similarity index 90%
rename from dev-util/samurai/samurai-1.2.ebuild
rename to dev-util/samurai/samurai-1.2-r1.ebuild
index 4333d1997bf..ad8d964b12b 100644
--- a/dev-util/samurai/samurai-1.2.ebuild
+++ b/dev-util/samurai/samurai-1.2-r1.ebuild
@@ -16,6 +16,10 @@ fi
LICENSE="ISC Apache-2.0 MIT"
SLOT="0"
+PATCHES=(
+ "${FILESDIR}/${P}-null_pointer_fix.patch" #786957
+)
+
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
dodoc README.md
next reply other threads:[~2021-04-29 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 19:41 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-29 19:50 [gentoo-commits] repo/gentoo:master commit in: dev-util/samurai/files/, dev-util/samurai/ Lars Wendler
2022-07-15 2:14 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1619725261.05f98b2284e04f5078b8b38238d6688f9c76414b.polynomial-c@gentoo \
--to=polynomial-c@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox