Hello community, here is the log from the commit of package hwinfo for openSUSE:Factory checked in at Mon Jan 12 17:55:31 CET 2009. -------- --- hwinfo/hwinfo.changes 2009-01-09 15:32:21.000000000 +0100 +++ /mounts/work_src_done/STABLE/hwinfo/hwinfo.changes 2009-01-12 15:26:45.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Jan 12 15:26:38 CET 2009 - snwint@suse.de + +- avoid segfault with broken sysfs data (bnc #461161) + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- hwinfo-15.22.tar.bz2 New: ---- hwinfo-15.23.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hwinfo.spec ++++++ --- /var/tmp/diff_new_pack.K31704/_old 2009-01-12 17:55:24.000000000 +0100 +++ /var/tmp/diff_new_pack.K31704/_new 2009-01-12 17:55:24.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package hwinfo (Version 15.22) +# spec file for package hwinfo (Version 15.23) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -28,9 +28,9 @@ PreReq: /sbin/ldconfig %insserv_prereq %fillup_prereq AutoReqProv: on Summary: Hardware Library -Version: 15.22 -Release: 1 -Source: hwinfo-15.22.tar.bz2 +Version: 15.23 +Release: 2 +Source: hwinfo-15.23.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -102,6 +102,8 @@ %doc doc/libhd/html %changelog +* Mon Jan 12 2009 snwint@suse.de +- avoid segfault with broken sysfs data (bnc #461161) * Fri Jan 09 2009 snwint@suse.de - fix input device detection (bnc #457834) * Thu Dec 11 2008 snwint@suse.de ++++++ hwinfo-15.22.tar.bz2 -> hwinfo-15.23.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hwinfo-15.22/Changelog new/hwinfo-15.23/Changelog --- old/hwinfo-15.22/Changelog 2009-01-09 15:31:49.000000000 +0100 +++ new/hwinfo-15.23/Changelog 2009-01-12 15:25:41.000000000 +0100 @@ -1,3 +1,6 @@ +12/1/2009: v15.23 + - avoid segfault with broken sysfs data (bnc #461161) + 9/1/2009: v15.22 - fix input device detection (bnc #457834) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hwinfo-15.22/src/hd/hd.c new/hwinfo-15.23/src/hd/hd.c --- old/hwinfo-15.22/src/hd/hd.c 2008-11-18 11:12:50.000000000 +0100 +++ new/hwinfo-15.23/src/hd/hd.c 2009-01-12 14:43:34.000000000 +0100 @@ -5819,7 +5819,7 @@ hd_sysfsdrv_t **sfp, *sf; str_list_t *sl, *sl0; uint64_t id = 0; - char *drv_dir = NULL, *drv = NULL, *module; + char *drv_dir = NULL, *drv = NULL, *module, *s; str_list_t *sf_bus, *sf_bus_e, *sf_drv, *sf_drv_e, *sf_drv2, *sf_drv2_e; for(sl = sl0 = read_file(PROC_MODULES, 0, 0); sl; sl = sl->next) { @@ -5852,7 +5852,8 @@ for(sf_drv2_e = sf_drv2; sf_drv2_e; sf_drv2_e = sf_drv2_e->next) { if(!strcmp(sf_drv2_e->str, "module")) { - module = strrchr(hd_read_sysfs_link(drv, sf_drv2_e->str), '/'); + s = hd_read_sysfs_link(drv, sf_drv2_e->str); + module = s ? strrchr(s, '/') : NULL; if(module) { sf = *sfp = new_mem(sizeof **sfp); sfp = &(*sfp)->next; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hwinfo-15.22/VERSION new/hwinfo-15.23/VERSION --- old/hwinfo-15.22/VERSION 2009-01-09 15:30:38.000000000 +0100 +++ new/hwinfo-15.23/VERSION 2009-01-12 14:44:28.000000000 +0100 @@ -1 +1 @@ -15.22 +15.23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org