diff -Nru thermald-1.6.0/debian/changelog thermald-1.6.0/debian/changelog --- thermald-1.6.0/debian/changelog 2017-06-30 05:27:41.000000000 +0000 +++ thermald-1.6.0/debian/changelog 2017-07-07 18:26:10.000000000 +0000 @@ -1,3 +1,10 @@ +thermald (1.6.0-5) unstable; urgency=medium + + * Initialize lowest_valid_index to prevent SEGV + - upstream commit 18d6ca75bbc504a + + -- Colin King Fri, 7 Jul 2017 19:26:58 +0100 + thermald (1.6.0-4) unstable; urgency=medium * Fix dbus re-init accessing deleted pointer diff -Nru thermald-1.6.0/debian/patches/0010-Initialize-lowest_valid_index-to-prevent-SEGV.patch thermald-1.6.0/debian/patches/0010-Initialize-lowest_valid_index-to-prevent-SEGV.patch --- thermald-1.6.0/debian/patches/0010-Initialize-lowest_valid_index-to-prevent-SEGV.patch 1970-01-01 00:00:00.000000000 +0000 +++ thermald-1.6.0/debian/patches/0010-Initialize-lowest_valid_index-to-prevent-SEGV.patch 2017-07-07 18:24:43.000000000 +0000 @@ -0,0 +1,28 @@ +From 18d6ca75bbc504aaf9fe862dc1c10c3c65fbe7bd Mon Sep 17 00:00:00 2001 +From: Srinivas Pandruvada +Date: Fri, 30 Jun 2017 10:23:48 -0700 +Subject: [PATCH] Initialize lowest_valid_index to prevent SEGV +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Chris Murphy reported ThermalMonitor crash by signal 11. +Fix this by initializing lowest_valid_index to 0. +--- + tools/thermal_monitor/thermaldinterface.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tools/thermal_monitor/thermaldinterface.cpp b/tools/thermal_monitor/thermaldinterface.cpp +index eca8d74..e73b7a5 100644 +--- a/tools/thermal_monitor/thermaldinterface.cpp ++++ b/tools/thermal_monitor/thermaldinterface.cpp +@@ -453,6 +453,7 @@ int ThermaldInterface::getZoneInformation(uint index, zoneInformationType &info) + info.name = result.arguments().at(0).toString(); + info.sensor_count = result.arguments().at(1).toInt(); + info.trip_count = result.arguments().at(2).toInt(); ++ info.lowest_valid_index = 0; + return 0; + } else { + qCritical() << "error from" << iface->interface() << result.errorMessage(); +-- +2.11.0 + diff -Nru thermald-1.6.0/debian/patches/series thermald-1.6.0/debian/patches/series --- thermald-1.6.0/debian/patches/series 2017-06-30 05:25:28.000000000 +0000 +++ thermald-1.6.0/debian/patches/series 2017-07-07 18:24:55.000000000 +0000 @@ -7,3 +7,4 @@ 0007-fix-typo-on-field-name-default_prefernce.patch 0008-Don-t-terminate-the-thermald-engine-if-thd_engine-is.patch 0009-Fix-dbus-re-init-accessing-deleted-pointer.patch +0010-Initialize-lowest_valid_index-to-prevent-SEGV.patch