Skip to contentSkip to conversation

rpm: fix return without value in patch

PATCH New Ross Burton 1 participant 2 messages Oct 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rpm: fix return without value in patch

The error patch in rpm-check-rootpath-reasonableness.patch did a bare return from a function that should be returning an int. As this is the error path, return -1 instead.

---
 meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch +1 -1
index 3986030..3d8d645 100644
@@ -37,7 +37,7 @@ index 40c42bd..88d85ab 100644
 +    int ret,rootdir_len;
 +
 +    if(rootdir == NULL) {
-+        return;
++        return -1;
 +    }
 +
 +    rootdir_len = strlen(rootdir);
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 readline: actually apply readline63-003 (aka CVE-2014-2524)

This file wasn't named as a patch, nor told to apply explicity, so it was just unpacked to the work directory and not applied. Rename the file so the patch is applied correctly.

(thanks to Petter Mabäcker <[email protected]> for spotting this)

---
 .../readline/readline-6.3/{readline63-003 => readline63-003.patch}      | 0
 meta/recipes-core/readline/readline_6.3.bb                              | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/readline/readline-6.3/{readline63-003 => readline63-003.patch} (100%)
meta/recipes-core/readline/readline-6.3/readline63-003.patch renamed from meta/recipes-core/readline/readline-6.3/readline63-003 +0 -0
similarity index 100%
rename from meta/recipes-core/readline/readline-6.3/readline63-003
rename to meta/recipes-core/readline/readline-6.3/readline63-003.patch
meta/recipes-core/readline/readline_6.3.bb +1 -1
index 55964a6..6ba1c18 100644
@@ -1,6 +1,6 @@
 require readline.inc
 
-SRC_URI += "file://readline63-003 \
+SRC_URI += "file://readline63-003.patch;striplevel=0 \
             file://readline-dispatch-multikey.patch"
 
 SRC_URI[archive.md5sum] = "33c8fb279e981274f485fd91da77e94a"
Signature · 1 line
2.1.4