Merge lp:~swem/ubuntu/wily/lshw/lp1471983 into lp:ubuntu/wily-proposed/lshw

Proposed by Chen-Han Hsiao (Stanley)
Status: Merged
Approved by: Michael Terry
Approved revision: 34
Merge reported by: Michael Terry
Merged at revision: not available
Proposed branch: lp:~swem/ubuntu/wily/lshw/lp1471983
Merge into: lp:ubuntu/wily-proposed/lshw
Diff against target: 58 lines (+38/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/presumably-fix-653.patch (+30/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~swem/ubuntu/wily/lshw/lp1471983
Reviewer Review Type Date Requested Status
Michael Terry Approve
Review via email: mp+274074@code.launchpad.net

Description of the change

For bug 1471983, I also encounter this issue in Ubuntu OEM project.

This bug is fixed in https://github.com/lyonel/lshw/commit/d048d300b5daeb44887a7fc06ddeb120119cac8a

The issue in upstream: [lshw segfaults, with some 16GB USB-3 sticks from Patriot] http://www.ezix.org/project/ticket/653

I've made a patch to fix it.

To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) wrote :

Looks good to me. Uploaded to wily.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2015-08-18 15:06:49 +0000
+++ debian/changelog 2015-10-11 13:48:56 +0000
@@ -1,3 +1,10 @@
1lshw (02.17-1.1ubuntu3) wily; urgency=medium
2
3 * [d048d30] Fix lshw crash issue on system with some USB-3 sticks
4 (LP: #1471983)
5
6 -- Chen-Han Hsiao (Stanley) <stanley.hsiao@canonical.com> Sun, 11 Oct 2015 21:35:54 +0800
7
1lshw (02.17-1.1ubuntu2) wily; urgency=medium8lshw (02.17-1.1ubuntu2) wily; urgency=medium
29
3 [ Manoj Iyer ]10 [ Manoj Iyer ]
411
=== added file 'debian/patches/presumably-fix-653.patch'
--- debian/patches/presumably-fix-653.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/presumably-fix-653.patch 2015-10-11 13:48:56 +0000
@@ -0,0 +1,30 @@
1From d048d300b5daeb44887a7fc06ddeb120119cac8a Mon Sep 17 00:00:00 2001
2From: Lyonel Vincent <lyonel@ezix.org>
3Date: Sun, 13 Jul 2014 11:21:59 +0000
4Subject: [PATCH] (presumably) fix #653
5
6git-svn-id: http://ezix.org/source/packages/lshw/development@2535 811e2811-9fd9-0310-a116-b6e8ac943c8b
7---
8 src/core/scsi.cc | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11diff --git a/src/core/scsi.cc b/src/core/scsi.cc
12index ed059cb..d85fcc8 100644
13--- a/src/core/scsi.cc
14+++ b/src/core/scsi.cc
15@@ -481,9 +481,9 @@ hwNode & node)
16 memset(rsp_buff, 0, sizeof(rsp_buff));
17 if (do_inq(sg_fd, 0, 1, 0x80, rsp_buff, MX_ALLOC_LEN, 0))
18 {
19- len = rsp_buff[3];
20- if (len > 0)
21- node.setSerial(hw::strip(string(rsp_buff + 4, len)));
22+ char _len = rsp_buff[3];
23+ if (_len > 0)
24+ node.setSerial(hw::strip(string(rsp_buff + 4, _len)));
25 }
26
27 memset(rsp_buff, 0, sizeof(rsp_buff));
28--
291.9.1
30
031
=== modified file 'debian/patches/series'
--- debian/patches/series 2015-08-18 15:06:49 +0000
+++ debian/patches/series 2015-10-11 13:48:56 +0000
@@ -16,3 +16,4 @@
16Do-not-brutally-merge-NICs-in-the-same-PCI-function-.patch16Do-not-brutally-merge-NICs-in-the-same-PCI-function-.patch
17smbios-noscan.patch17smbios-noscan.patch
18fat-inspection.patch18fat-inspection.patch
19presumably-fix-653.patch

Subscribers

People subscribed via source and target branches