git: 80159b8a2cda - main - devel/libcuckoo: Import a patch from LibreOffice.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 16:27:43 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=80159b8a2cda272ed64c0fe80eac16e9286a2bae
commit 80159b8a2cda272ed64c0fe80eac16e9286a2bae
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-02-28 09:37:15 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-02-28 16:27:40 +0000
devel/libcuckoo: Import a patch from LibreOffice.
Reported by: fluffy
---
devel/libcuckoo/Makefile | 1 +
devel/libcuckoo/files/patch-cuckoo-coverity.patch | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/devel/libcuckoo/Makefile b/devel/libcuckoo/Makefile
index 2ace21ba32be..7960f579afff 100644
--- a/devel/libcuckoo/Makefile
+++ b/devel/libcuckoo/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libcuckoo
PORTVERSION= 0.3
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= arrowd@FreeBSD.org
diff --git a/devel/libcuckoo/files/patch-cuckoo-coverity.patch b/devel/libcuckoo/files/patch-cuckoo-coverity.patch
new file mode 100644
index 000000000000..273d3bf1f0e3
--- /dev/null
+++ b/devel/libcuckoo/files/patch-cuckoo-coverity.patch
@@ -0,0 +1,22 @@
+--- libcuckoo/cuckoohash_map.hh 2021-09-11 11:29:05.656553870 +0100
++++ libcuckoo/cuckoohash_map.hh 2021-09-11 11:31:48.265203248 +0100
+@@ -866,7 +866,8 @@
+
+ class TwoBuckets {
+ public:
+- TwoBuckets() {}
++ TwoBuckets()
++ : i1(0), i2(0) {}
+ TwoBuckets(size_type i1_, size_type i2_, locked_table_mode)
+ : i1(i1_), i2(i2_) {}
+ TwoBuckets(locks_t &locks, size_type i1_, size_type i2_, normal_mode)
+@@ -1552,7 +1553,8 @@
+ " MAX_BFS_PATH_LEN - 1");
+ static_assert(-1 >= std::numeric_limits<decltype(depth)>::min(),
+ "The depth type must be able to hold a value of -1");
+- b_slot() {}
++ b_slot()
++ : bucket(0), pathcode(0), depth(0) {}
+ b_slot(const size_type b, const uint16_t p, const decltype(depth) d)
+ : bucket(b), pathcode(p), depth(d) {
+ assert(d < MAX_BFS_PATH_LEN);