Control: tags 816481 + patch Dear maintainer,
I've prepared an NMU for sysinfo (versioned as 0.7-10.1) and will be looking for a sponsor for it. Feel free to tell me if you want to upload it yourself. The changelog is: sysinfo (0.7-10.1) unstable; urgency=medium * Non-maintainer upload * Apply patch from Alexander Grothe to fix crash when trying to get System- information (Closes: #816481) -- Andreas Moog <andreas.m...@warperbbs.de> Wed, 24 May 2017 22:06:47 +0200 Regards. -- PGP-encrypted mails preferred PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624
diff -Nru sysinfo-0.7/debian/changelog sysinfo-0.7/debian/changelog --- sysinfo-0.7/debian/changelog 2015-09-09 15:56:37.000000000 +0200 +++ sysinfo-0.7/debian/changelog 2017-05-24 22:06:47.000000000 +0200 @@ -1,3 +1,11 @@ +sysinfo (0.7-10.1) unstable; urgency=medium + + * Non-maintainer upload + * Apply patch from Alexander Grothe to fix crash when trying to get System- + information (Closes: #816481) + + -- Andreas Moog <andreas.m...@warperbbs.de> Wed, 24 May 2017 22:06:47 +0200 + sysinfo (0.7-10) unstable; urgency=low * No change rebuild for CLR 4.5 transition diff -Nru sysinfo-0.7/debian/patches/16-fix-gnome-detection.patch sysinfo-0.7/debian/patches/16-fix-gnome-detection.patch --- sysinfo-0.7/debian/patches/16-fix-gnome-detection.patch 1970-01-01 01:00:00.000000000 +0100 +++ sysinfo-0.7/debian/patches/16-fix-gnome-detection.patch 2017-05-24 22:06:47.000000000 +0200 @@ -0,0 +1,26 @@ +Description: Fix crash when gathering system information on newer Gnome + versions. + There is no <date> tag in recent versions of the gnome-version.xml so the variable + gnomeB is never set to true which causes the loop to run until the end of the file + is reached and there is no check if textread.ReadLine() returns null before any + string operations are performed on the result. +Author: Alexander Grothe <alexander.gro...@googlemail.com> +Origin: other, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816481;msg=10 +Bug-Debian: https://bugs.debian.org/816481 +Bug-Ubuntu: https://launchpad.net/bugs/1575182 +Forwarded: No, project seems dead upstream +Last-Update: 2017-05-24 + +--- sysinfo-0.7.orig/Sysinfo/SystemInfo.cs ++++ sysinfo-0.7/Sysinfo/SystemInfo.cs +@@ -171,9 +171,7 @@ namespace Sysinfo { + + using (TextReader textread = File.OpenText(gnome_about)) { + +- while ( gnomeB == false ) { +- +- temp = textread.ReadLine(); ++ while ( (temp = textread.ReadLine()) != null && gnomeB == false ) { + + //get version from xml + if ( temp.EndsWith("platform>")) { diff -Nru sysinfo-0.7/debian/patches/series sysinfo-0.7/debian/patches/series --- sysinfo-0.7/debian/patches/series 2014-07-30 17:15:58.000000000 +0200 +++ sysinfo-0.7/debian/patches/series 2017-05-24 22:06:47.000000000 +0200 @@ -14,3 +14,4 @@ 13-fix-reordered-cpuinfo.patch 14-fix-pkglibdir-error.patch 15-fix-the-wrong-path-of-gnome-version.patch +16-fix-gnome-detection.patch
signature.asc
Description: PGP signature