Skip to content
Snippets Groups Projects
Commit e671a75f authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8989 fix bitshift integer overflow

parent d4a0a9b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment