summaryrefslogtreecommitdiffstats
path: root/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch')
-rw-r--r--meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch25
1 files changed, 25 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
+