aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-06-29 12:02:56 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-07-27 17:38:31 +0900
commit5e88d88c5a31d5a7fb4688f2e192976e8a118c41 (patch)
treeb3259a71832e2aa82b3907f9bf8e8cb626365b1e
parent6128beeb75cd58ca045ee4e1683454c58f348993 (diff)
downloadmeta-ivi-5e88d88c5a31d5a7fb4688f2e192976e8a118c41.tar.gz
meta-ivi-5e88d88c5a31d5a7fb4688f2e192976e8a118c41.tar.bz2
meta-ivi-5e88d88c5a31d5a7fb4688f2e192976e8a118c41.zip
persistence-common-object: critical bug fix reported by Igor Socec
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch25
-rw-r--r--meta-ivi/recipes-extended/persistence-common-object/persistence-common-object_1.0.3.bb1
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch b/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch
new file mode 100644
index 0000000..5e33db8
--- /dev/null
+++ b/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch
@@ -0,0 +1,25 @@
+From 1b23e610576f9212061008df2a6cb065982a9c97 Mon Sep 17 00:00:00 2001
+From: "Disch, Simon" <Simon.Disch@xse.de>
+Date: Wed, 1 Apr 2015 12:21:21 +0200
+Subject: [PATCH 1/4] fixed GENIVI Bug 345
+
+---
+ src/key-value-store/database/kissdb.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/key-value-store/database/kissdb.c b/src/key-value-store/database/kissdb.c
+index 6a4d119..7c0695d 100644
+--- a/src/key-value-store/database/kissdb.c
++++ b/src/key-value-store/database/kissdb.c
+@@ -1532,7 +1532,7 @@ int verifyHashtableCS(KISSDB* db)
+ ptr += offset;
+
+ //get number of hashtables in file (search for hashtable delimiters) and copy the hashtables to memory
+- while (offset <= (statBuf.st_size - db->htSizeBytes)) //begin with offset for first hashtable
++ while (offset <= ((int64_t)statBuf.st_size - (int64_t)db->htSizeBytes)) //begin with offset for first hashtable
+ {
+ hashtable = (Hashtable_s*) ptr;
+ //if at least one of two hashtable delimiters are found
+--
+1.9.1
+
diff --git a/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object_1.0.3.bb b/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object_1.0.3.bb
index 240c2a6..ce32630 100644
--- a/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object_1.0.3.bb
+++ b/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object_1.0.3.bb
@@ -10,6 +10,7 @@ SRC_URI = " \
git://git.projects.genivi.org/persistence/persistence-common-object.git;protocol=http \
file://configure.ac-fix-typo.patch \
file://B251_typedef_uint64_t.patch \
+ file://0001-fixed-GENIVI-Bug-345.patch \
"
S = "${WORKDIR}/git"