From d280d2c8e941f1fb50825eea4426e6ebae66697d Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 1 Dec 2020 18:51:12 +0100 Subject: [PATCH 1/2] Fix uninitialised mBobAccessible in ServerPage::ServerPage Conditional jump or move depends on uninitialised value(s) in ServerPage::updateStatusBob() in /retroshare-gui/src/gui/settings/ ServerPage.cpp:1770 --- retroshare-gui/src/gui/settings/ServerPage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/settings/ServerPage.cpp b/retroshare-gui/src/gui/settings/ServerPage.cpp index 00d01eee8..ca3144b5c 100755 --- a/retroshare-gui/src/gui/settings/ServerPage.cpp +++ b/retroshare-gui/src/gui/settings/ServerPage.cpp @@ -75,14 +75,14 @@ const static uint32_t TAB_RELAYS = 3; //#define SERVER_DEBUG 1 ServerPage::ServerPage(QWidget * parent, Qt::WindowFlags flags) - : ConfigPage(parent, flags), mIsHiddenNode(false), mHiddenType(RS_HIDDEN_TYPE_NONE) + : ConfigPage(parent, flags) + , manager(NULL), mOngoingConnectivityCheck(-1) + , mIsHiddenNode(false), mHiddenType(RS_HIDDEN_TYPE_NONE) + , mBobAccessible(false) { /* Invoke the Qt Designer generated object setup routine */ ui.setupUi(this); - manager = NULL ; - mOngoingConnectivityCheck = -1; - #ifndef RS_USE_I2P_BOB ui.hiddenServiceTab->removeTab(TAB_HIDDEN_SERVICE_I2P_BOB); // warning: the order of operation here is very important. #endif From 4b10a3091da3f87af5500345098a9223fa71e6fe Mon Sep 17 00:00:00 2001 From: Phenom Date: Wed, 2 Dec 2020 18:24:25 +0100 Subject: [PATCH 2/2] Fix uninitialised mTotalIdentities in GxsIdStatisticsWidget Conditional jump or move depends on uninitialised value(s) in GxsIdStatisticsWidget::updateContent() in /retroshare-gui/src/gui/ statistics/GxsIdStatistics.cpp:278 --- .../src/gui/statistics/GxsIdStatistics.cpp | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/retroshare-gui/src/gui/statistics/GxsIdStatistics.cpp b/retroshare-gui/src/gui/statistics/GxsIdStatistics.cpp index a09053deb..c7fe1068c 100644 --- a/retroshare-gui/src/gui/statistics/GxsIdStatistics.cpp +++ b/retroshare-gui/src/gui/statistics/GxsIdStatistics.cpp @@ -319,10 +319,10 @@ void GxsIdStatisticsWidget::updateContent() painter.drawLine(QPoint(ox+4*cellx,oy),QPoint(ox+4*cellx,oy-celly*hist_height)); uint32_t max_entry=0; - for(int i=0;i