Codebase list innoextract / 707bf27
new upstream version 1.8 Lennart Weller 4 years ago
5 changed file(s) with 10 addition(s) and 55 deletion(s). Raw diff Collapse all Expand all
0 innoextract (1.8-1) unstable; urgency=medium
1
2 * Move to new upstream version. Deprecating the last patch
3
4 -- Lennart Weller <lhw@ring0.de> Wed, 15 Jan 2020 16:30:07 +0100
5
06 innoextract (1.7-2) unstable; urgency=medium
17
28 * upstream patch: fix larger than 2GiB slices (Closes: #903312)
+0
-1
debian/compat less more
0 9
22 Priority: optional
33 Maintainer: Lennart Weller <lhw@ring0.de>
44 Uploaders: Sebastian Reichel <sre@debian.org>
5 Standards-Version: 4.2.1
5 Standards-Version: 4.4.1
66 Vcs-Browser: https://salsa.debian.org/lhw-guest/innoextract
77 Vcs-git: https://salsa.debian.org/lhw-guest/innoextract.git
88 Homepage: http://constexpr.org/innoextract/
99 Build-Depends: cmake,
10 debhelper (>= 9),
10 debhelper (>= 12),
11 debhelper-compat(= 12),
1112 dpkg-dev (>= 1.16.1~),
1213 libboost-iostreams-dev,
1314 libboost-filesystem-dev,
2526 Inno Setup is a tool to create installers for Microsoft Windows applications.
2627 Inno Extracts allows one to extract such installers under non-windows systems
2728 without running the actual installer using wine. Inno Extract currently
28 supports installers created by Inno Setup 1.2.10 to 5.5.8.
29 supports installers created by Inno Setup 1.2.10 to 5.6.0.
+0
-50
debian/patches/0001-Fix-support-for-slices-larger-than-2-GiB-in-32-bit.patch less more
0 From: Daniel Scharrer <daniel@constexpr.org>
1 Date: Fri, 2 Nov 2018 08:58:25 +0100
2 Subject: Fix support for slices larger than 2 GiB in 32-bit
3
4 ---
5 CHANGELOG | 5 +++++
6 src/stream/slice.cpp | 8 +++++---
7 2 files changed, 10 insertions(+), 3 deletions(-)
8
9 diff --git a/CHANGELOG b/CHANGELOG
10 index 20d27f0..ea9faac 100644
11 --- a/CHANGELOG
12 +++ b/CHANGELOG
13 @@ -1,4 +1,9 @@
14
15 +innoextract 1.8 (WIP)
16 + - Added support for installers using an alternative setup loader magic
17 + - Added support for using boost_{zlib,bzip2} when statically linking Boost
18 + - Fixed extracting files from slices larger than 2 GiB with 32-bit builds
19 +
20 innoextract 1.7 (2018-06-12)
21 - Added support for Inno Setup 5.6.0 installers
22 - Added support for new GOG installers with GOG Galaxy file parts
23 diff --git a/src/stream/slice.cpp b/src/stream/slice.cpp
24 index c4b3372..4ed2637 100644
25 --- a/src/stream/slice.cpp
26 +++ b/src/stream/slice.cpp
27 @@ -231,17 +231,19 @@ std::streamsize slice_reader::read(char * buffer, std::streamsize bytes) {
28 if(read_pos > slice_size) {
29 break;
30 }
31 - std::streamsize remaining = std::streamsize(slice_size - read_pos);
32 + boost::uint32_t remaining = slice_size - read_pos;
33 if(!remaining) {
34 seek(current_slice + 1);
35 read_pos = boost::uint32_t(is->tellg());
36 if(read_pos > slice_size) {
37 break;
38 }
39 - remaining = std::streamsize(slice_size - read_pos);
40 + remaining = slice_size - read_pos;
41 }
42
43 - if(is->read(buffer, std::min(remaining, bytes)).fail()) {
44 + boost::uint64_t toread = std::min(boost::uint64_t(remaining), boost::uint64_t(bytes));
45 + toread = std::min(toread, boost::uint64_t(std::numeric_limits<std::streamsize>::max()));
46 + if(is->read(buffer, std::streamsize(toread)).fail()) {
47 break;
48 }
49
+0
-1
debian/patches/series less more
0 0001-Fix-support-for-slices-larger-than-2-GiB-in-32-bit.patch