summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-03-06 19:55:08 +0100
committerDavid Seifert <soap@gentoo.org>2021-03-06 19:55:08 +0100
commit49d6eac33c52e82b98c4715a843cd2ff35b7ed9a (patch)
tree63a2c0d1c03cef7fc41b531620a27b59cd5af0c6 /dev-libs/udis86
parentsys-kernel/gentoo-kernel-bin: bump 5.11.3 for arm64 (diff)
downloadgentoo-49d6eac33c52e82b98c4715a843cd2ff35b7ed9a.tar.gz
gentoo-49d6eac33c52e82b98c4715a843cd2ff35b7ed9a.tar.bz2
gentoo-49d6eac33c52e82b98c4715a843cd2ff35b7ed9a.zip
dev-libs/udis86: Fix uninitialized var
* Taken from upstream commit https://github.com/vmt/udis86/commit/cce390dd61996e569bd8a3bca78e7aa4b286d6df Closes: https://bugs.gentoo.org/768573 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs/udis86')
-rw-r--r--dev-libs/udis86/files/udis86-1.7.2-uninitialized-variable.patch22
-rw-r--r--dev-libs/udis86/udis86-1.7.2-r1.ebuild1
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-libs/udis86/files/udis86-1.7.2-uninitialized-variable.patch b/dev-libs/udis86/files/udis86-1.7.2-uninitialized-variable.patch
new file mode 100644
index 000000000000..3778e535caa5
--- /dev/null
+++ b/dev-libs/udis86/files/udis86-1.7.2-uninitialized-variable.patch
@@ -0,0 +1,22 @@
+From cce390dd61996e569bd8a3bca78e7aa4b286d6df Mon Sep 17 00:00:00 2001
+From: Vivek Thampi <vivek.mt@gmail.com>
+Date: Sun, 22 Sep 2013 12:13:05 -0700
+Subject: [PATCH] Minor fix for an uninitialized var
+
+---
+ libudis86/decode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libudis86/decode.c b/libudis86/decode.c
+index 3dab9ad..55638bd 100644
+--- a/libudis86/decode.c
++++ b/libudis86/decode.c
+@@ -228,7 +228,7 @@ static int
+ decode_prefixes(struct ud *u)
+ {
+ int done = 0;
+- uint8_t curr, last = 0;
++ uint8_t curr = 0, last = 0;
+ UD_RETURN_ON_ERROR(u);
+
+ do {
diff --git a/dev-libs/udis86/udis86-1.7.2-r1.ebuild b/dev-libs/udis86/udis86-1.7.2-r1.ebuild
index f7f19738e446..8a158bc2c33e 100644
--- a/dev-libs/udis86/udis86-1.7.2-r1.ebuild
+++ b/dev-libs/udis86/udis86-1.7.2-r1.ebuild
@@ -27,6 +27,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-docdir.patch
"${FILESDIR}"/${P}-python3.patch
+ "${FILESDIR}"/${P}-uninitialized-variable.patch
)
src_prepare() {