From e671a75f64b0a884eaf320b79adcdda30c1b8926 Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@symas.com> Date: Sun, 10 Mar 2019 14:21:48 +0000 Subject: [PATCH] ITS#8989 fix bitshift integer overflow --- servers/slapd/back-mdb/id2entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-mdb/id2entry.c b/servers/slapd/back-mdb/id2entry.c index 08cac2af6d..6682d91407 100644 --- a/servers/slapd/back-mdb/id2entry.c +++ b/servers/slapd/back-mdb/id2entry.c @@ -568,7 +568,7 @@ static int mdb_entry_partsize(struct mdb_info *mdb, MDB_txn *txn, Entry *e, return 0; } -#define HIGH_BIT (1<<(sizeof(unsigned int)*CHAR_BIT-1)) +#define HIGH_BIT (1U<<(sizeof(unsigned int)*CHAR_BIT-1)) /* Flatten an Entry into a buffer. The buffer starts with the count of the * number of attributes in the entry, the total number of values in the -- GitLab