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

Proposed by Chen-Han Hsiao (Stanley)
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~swem/ubuntu/vivid/lshw/lp1471983
Merge into: lp:ubuntu/vivid-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/vivid/lshw/lp1471983
Reviewer Review Type Date Requested Status
Sebastien Bacher Disapprove
Review via email: mp+274073@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
Sebastien Bacher (seb128) wrote :

the fix has been uploaded to wily, vivid is not the current stable anymore so not likely important for a SRU, let's skip this one. Please let me know if you really need it in vivid though

review: Disapprove

Unmerged revisions

34. By Chen-Han Hsiao (Stanley)

[d048d30] Fix lshw crash issue on system with some USB-3 sticks
(LP: #1471983)

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-24 16:11:32 +0000
+++ debian/changelog 2015-10-11 13:45:05 +0000
@@ -1,3 +1,10 @@
1lshw (02.17-1.1ubuntu1.2) vivid; 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 20:54:12 +0800
7
1lshw (02.17-1.1ubuntu1.1) vivid; urgency=medium8lshw (02.17-1.1ubuntu1.1) vivid; urgency=medium
29
3 * Backport cpuinfo support for aarch64 (LP: #1485086)10 * Backport cpuinfo support for aarch64 (LP: #1485086)
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:45:05 +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-24 16:11:32 +0000
+++ debian/patches/series 2015-10-11 13:45:05 +0000
@@ -16,3 +16,4 @@
16smbios-noscan.patch16smbios-noscan.patch
17fat-inspection.patch17fat-inspection.patch
18cpuinfo-arm-aarch64-support.patch18cpuinfo-arm-aarch64-support.patch
19presumably-fix-653.patch

Subscribers

People subscribed via source and target branches