update to version 0.31.1
This commit is contained in:
parent
981bad76e4
commit
4bb88eb622
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
icoutils-0.29.1.tar.bz2
|
||||
/icoutils-0.30.0.tar.bz2
|
||||
/icoutils-0.31.0.tar.bz2
|
||||
/icoutils-0.31.1.tar.bz2
|
||||
|
||||
@ -1,22 +0,0 @@
|
||||
diff --git a/wrestool/extract.c b/wrestool/extract.c
|
||||
index a203d04..8192a1f 100644
|
||||
--- a/wrestool/extract.c
|
||||
+++ b/wrestool/extract.c
|
||||
@@ -237,13 +237,15 @@ extract_group_icon_cursor_resource(WinLibrary *fi, WinResource *wr, char *lang,
|
||||
fileicondir->entries[c-skipped].dib_offset = offset;
|
||||
|
||||
/* transfer resource into file memory */
|
||||
+ if (size > icondir->entries[c].bytes_in_res)
|
||||
+ size = icondir->entries[c].bytes_in_res;
|
||||
if (is_icon) {
|
||||
- memcpy(&memory[offset], data, icondir->entries[c].bytes_in_res);
|
||||
+ memcpy(&memory[offset], data, size);
|
||||
} else {
|
||||
fileicondir->entries[c-skipped].hotspot_x = ((uint16_t *) data)[0];
|
||||
fileicondir->entries[c-skipped].hotspot_y = ((uint16_t *) data)[1];
|
||||
memcpy(&memory[offset], data+sizeof(uint16_t)*2,
|
||||
- icondir->entries[c].bytes_in_res-sizeof(uint16_t)*2);
|
||||
+ size-sizeof(uint16_t)*2);
|
||||
offset -= sizeof(uint16_t)*2;
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: icoutils
|
||||
Version: 0.31.0
|
||||
Release: 9%{?dist}
|
||||
Version: 0.31.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Utility for extracting and converting Microsoft icon and cursor files
|
||||
|
||||
Group: Applications/Multimedia
|
||||
@ -8,10 +8,6 @@ License: GPLv3+
|
||||
URL: http://www.nongnu.org/icoutils/
|
||||
Source0: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
|
||||
|
||||
# wrestool: ensure that reading the resource data doesn't exceed the
|
||||
# allocated memory block
|
||||
Patch0: %{name}-wrestool-extract.patch
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gettext
|
||||
@ -29,7 +25,6 @@ libraries.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
autoreconf -i
|
||||
|
||||
for f in AUTHORS NEWS; do
|
||||
@ -58,6 +53,10 @@ make install DESTDIR=%{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 09 2017 Martin Gieseking <martin.gieseking@uos.de> - 0.31.1-1
|
||||
- Updated to version 0.31.1.
|
||||
- Dropped wrestool patch because it has been applied upstream.
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user