diff options
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" |