summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-11 11:34:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-11 14:35:50 +0200
commit1fcc0cb5ee5397addee2fcfbebcc2d124a82e8e5 (patch)
tree170891b9d7ba2086f6ce22516b5b1005ae25cb93 /external
parent6891347a3d0896918e4aec64c9d255fe6b58163a (diff)
cid#1491408 Uninitialized scalar field
and cid#1491409 Uninitialized scalar field Change-Id: I90300f1b7ddb8e70f6b816e802a082b0518e7466 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121934 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'external')
-rw-r--r--external/cuckoo/UnpackedTarball_cuckoo.mk4
-rw-r--r--external/cuckoo/cuckoo-coverity.patch22
2 files changed, 26 insertions, 0 deletions
diff --git a/external/cuckoo/UnpackedTarball_cuckoo.mk b/external/cuckoo/UnpackedTarball_cuckoo.mk
index 1cfbcc6b882c..e0426181b3a7 100644
--- a/external/cuckoo/UnpackedTarball_cuckoo.mk
+++ b/external/cuckoo/UnpackedTarball_cuckoo.mk
@@ -15,4 +15,8 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,cuckoo,0))
$(eval $(call gb_UnpackedTarball_update_autoconf_configs,cuckoo))
+$(eval $(call gb_UnpackedTarball_add_patches,cuckoo,\
+ external/cuckoo/cuckoo-coverity.patch \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/external/cuckoo/cuckoo-coverity.patch b/external/cuckoo/cuckoo-coverity.patch
new file mode 100644
index 000000000000..273d3bf1f0e3
--- /dev/null
+++ b/external/cuckoo/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);