aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi/recipes-extended/persistence-common-object/persistence-common-object/0001-fixed-GENIVI-Bug-345.patch
blob: 5e33db882906fa0aff1be2d5529d7dcafdbbb391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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