Merge lp:~johnjay/ubuntu/trusty/djmount/fix-segfault-1322813 into lp:ubuntu/trusty/djmount

Proposed by JohnJay
Status: Needs review
Proposed branch: lp:~johnjay/ubuntu/trusty/djmount/fix-segfault-1322813
Merge into: lp:ubuntu/trusty/djmount
Diff against target: 45 lines (+25/-0)
3 files modified
debian/changelog (+10/-0)
debian/patches/004-avoid-crash-by-using-size_t.patch (+14/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~johnjay/ubuntu/trusty/djmount/fix-segfault-1322813
Reviewer Review Type Date Requested Status
Brian Murray Needs Fixing
Review via email: mp+292070@code.launchpad.net
To post a comment you must log in.
Revision history for this message
JohnJay (johnjay) wrote :

This is intended to mirror the 0.71-7 version available for the later ubuntu releases. As far as I'm aware they have the same codebase, so I'm not sure if there's a more direct way to do this (I pulled out the trusty version and applied the patch, wrote the new commit message etc, rather than pull in the other commit directly if that makes sense in bazaar).

Revision history for this message
JohnJay (johnjay) wrote :

Some further research suggests that perhaps this should have been a sync request instead?

Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for working on this, the version numbering should following the following recommendations.

https://wiki.ubuntu.com/SecurityTeam/UpdatePreparation#Update_the_packaging

So, you wouldn't want to change the version in the changelog to 0.71-7ubuntu0.1, additionally you'll want to replace unstable with trusty since that is what we are fixing it in. Finally, a reference to the Launchpad bug number should be made for the Stable Release Update process e.g. (LP: #1322813). You can learn more about the SRU process at https://wiki.ubuntu.com/StableReleaseUpdates.

Thanks for working on this!

review: Needs Fixing

Unmerged revisions

8. By JohnJay

* debian/patches/004-avoid-crash-by-using-size_t.patch:
   - Fixes segfault on 64-bit architectures when reading files
     from a mounted DLNA share (Closes: #674753, #701680)
     Thanks to Bernhard Übelacker <email address hidden> and
     John Paul Adrian Glaubitz <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-01-21 20:55:07 +0000
3+++ debian/changelog 2016-04-16 17:12:18 +0000
4@@ -1,3 +1,13 @@
5+djmount (0.71-7) unstable; urgency=medium
6+
7+ * debian/patches/004-avoid-crash-by-using-size_t.patch:
8+ - Fixes segfault on 64-bit architectures when reading files
9+ from a mounted DLNA share (Closes: #674753, #701680)
10+ Thanks to Bernhard Übelacker <bernhardu@vr-web.de> and
11+ John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
12+
13+ -- JohnJay <ubuntu-qqq@snkmail.com> Sat, 16 Apr 2016 17:53:05 +0100
14+
15 djmount (0.71-6) unstable; urgency=low
16
17 * debian/control:
18
19=== added file 'debian/patches/004-avoid-crash-by-using-size_t.patch'
20--- debian/patches/004-avoid-crash-by-using-size_t.patch 1970-01-01 00:00:00 +0000
21+++ debian/patches/004-avoid-crash-by-using-size_t.patch 2016-04-16 17:12:18 +0000
22@@ -0,0 +1,14 @@
23+## Description: add some description
24+## Origin/Author: add some origin or author
25+## Bug: bug URL
26+--- a/djmount/file_buffer.c
27++++ b/djmount/file_buffer.c
28+@@ -212,7 +212,7 @@
29+ * to return the exact number of bytes requested.
30+ */
31+ do {
32+- unsigned int read_size = size - n;
33++ size_t read_size = size - n;
34+ if (n > 0) {
35+ Log_Printf (LOG_DEBUG,
36+ "UpnpReadHttpGet loop ! url '%s' "
37
38=== modified file 'debian/patches/series'
39--- debian/patches/series 2012-04-21 16:56:57 +0000
40+++ debian/patches/series 2016-04-16 17:12:18 +0000
41@@ -2,3 +2,4 @@
42 000_djmount.1.diff
43 001-libupnp-1.6.6.diff
44 002-libupnp-1.6.13.diff
45+004-avoid-crash-by-using-size_t.patch

Subscribers

People subscribed via source and target branches

to all changes: