Compare commits
12 Commits
Author | SHA1 | Date |
---|---|---|
Richard W.M. Jones | 2d51ea6670 | |
Richard W.M. Jones | c59e15a167 | |
Richard W.M. Jones | fd938bff1d | |
Richard W.M. Jones | 5f941c3ead | |
Fedora Release Engineering | 81b3d43827 | |
Richard W.M. Jones | 8cc4440247 | |
Richard W.M. Jones | 093d02251f | |
Richard W.M. Jones | 67ab218595 | |
Richard W.M. Jones | e3be2c75da | |
Richard W.M. Jones | 0d6be88e89 | |
Richard W.M. Jones | e38c7e15f1 | |
Jason ティビツ | 246a35c790 |
|
@ -0,0 +1,12 @@
|
||||||
|
hivex-1.2.2.tar.gz
|
||||||
|
/hivex-1.2.3.tar.gz
|
||||||
|
/hivex-1.2.4.tar.gz
|
||||||
|
/hivex-1.2.5.tar.gz
|
||||||
|
/hivex-1.2.6.tar.gz
|
||||||
|
/hivex-1.2.7.tar.gz
|
||||||
|
/hivex-1.2.8.tar.gz
|
||||||
|
/hivex-1.3.0.tar.gz
|
||||||
|
/hivex-1.3.1.tar.gz
|
||||||
|
/hivex-1.3.2.tar.gz
|
||||||
|
/hivex-1.3.3.tar.gz
|
||||||
|
/hivex-1.3.5.tar.gz
|
|
@ -0,0 +1,29 @@
|
||||||
|
From 7fdaaf443f20224ce6bf6de53f3194974da315f6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
Date: Fri, 30 Mar 2012 10:54:50 +0100
|
||||||
|
Subject: [PATCH 1/3] RHEL 5: configure: Fix test for caml_raise_with_args.
|
||||||
|
|
||||||
|
---
|
||||||
|
configure.ac | 6 +++---
|
||||||
|
1 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index d1604f7..fb4e074 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -211,9 +211,9 @@ if test "x$OCAMLC" != "xno"; then
|
||||||
|
echo "char $f (); char foo() { return $f (); }" > conftest.c
|
||||||
|
rm -f conftest_ml.ml
|
||||||
|
touch conftest_ml.ml
|
||||||
|
- if $OCAMLC -c conftest.c 2>/dev/null && \
|
||||||
|
- $OCAMLC -c conftest_ml.ml 2>/dev/null && \
|
||||||
|
- $OCAMLC conftest.o conftest_ml.cmo -o conftest 2>/dev/null ; then
|
||||||
|
+ if $OCAMLC -c conftest.c >&AS_MESSAGE_LOG_FD 2>&1 && \
|
||||||
|
+ $OCAMLC -c conftest_ml.ml >&AS_MESSAGE_LOG_FD 2>&1 && \
|
||||||
|
+ $OCAMLC -custom conftest.o conftest_ml.cmo -o conftest >&AS_MESSAGE_LOG_FD 2>&1 ; then
|
||||||
|
AC_DEFINE([HAVE_CAML_RAISE_WITH_ARGS],[1],
|
||||||
|
[Defined if function caml_raise_with_args exists.])
|
||||||
|
AC_MSG_RESULT([found])
|
||||||
|
--
|
||||||
|
1.7.4.1
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
From 357f26fa64fd1d9ccac2331fe174a8ee9c607adb Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||||||
|
Date: Thu, 30 Oct 2014 13:50:39 +0000
|
||||||
|
Subject: [PATCH 1/2] handle: Refuse to open files < 8192 bytes in size.
|
||||||
|
|
||||||
|
These cannot be valid hives, since they don't contain a full header
|
||||||
|
page and at least a single page of data (in other words they couldn't
|
||||||
|
contain a root node).
|
||||||
|
|
||||||
|
Thanks: Mahmoud Al-Qudsi
|
||||||
|
---
|
||||||
|
lib/hivex.c | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/lib/hivex.c b/lib/hivex.c
|
||||||
|
index 62a8644..a3cbcf7 100644
|
||||||
|
--- a/lib/hivex.c
|
||||||
|
+++ b/lib/hivex.c
|
||||||
|
@@ -104,6 +104,13 @@ hivex_open (const char *filename, int flags)
|
||||||
|
|
||||||
|
h->size = statbuf.st_size;
|
||||||
|
|
||||||
|
+ if (h->size < 0x2000) {
|
||||||
|
+ SET_ERRNO (EINVAL,
|
||||||
|
+ "%s: file is too small to be a Windows NT Registry hive file",
|
||||||
|
+ filename);
|
||||||
|
+ goto error;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (!h->writable) {
|
||||||
|
h->addr = mmap (NULL, h->size, PROT_READ, MAP_SHARED, h->fd, 0);
|
||||||
|
if (h->addr == MAP_FAILED)
|
||||||
|
--
|
||||||
|
2.1.0
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
From 0030147305c41d289d924b003fa67977c2dea6ff Mon Sep 17 00:00:00 2001
|
||||||
|
From: Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
Date: Fri, 30 Mar 2012 10:55:34 +0100
|
||||||
|
Subject: [PATCH 2/3] RHEL 5: build: Fix some C99-isms that confuse old gcc.
|
||||||
|
|
||||||
|
---
|
||||||
|
generator/generator.ml | 3 ++-
|
||||||
|
lib/hivex.c | 8 +++++---
|
||||||
|
2 files changed, 7 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/generator/generator.ml b/generator/generator.ml
|
||||||
|
index b0c10eb..ed152af 100755
|
||||||
|
--- a/generator/generator.ml
|
||||||
|
+++ b/generator/generator.ml
|
||||||
|
@@ -1885,7 +1885,8 @@ static void raise_closed (const char *) Noreturn;
|
||||||
|
pr " free (r);\n"
|
||||||
|
| RStringList ->
|
||||||
|
pr " rv = caml_copy_string_array ((const char **) r);\n";
|
||||||
|
- pr " for (int i = 0; r[i] != NULL; ++i) free (r[i]);\n";
|
||||||
|
+ pr " int i;\n";
|
||||||
|
+ pr " for (i = 0; r[i] != NULL; ++i) free (r[i]);\n";
|
||||||
|
pr " free (r);\n"
|
||||||
|
| RLenType -> pr " rv = copy_type_len (len, t);\n"
|
||||||
|
| RLenValue -> pr " rv = copy_len_value (len, r);\n"
|
||||||
|
diff --git a/lib/hivex.c b/lib/hivex.c
|
||||||
|
index df313bf..711b058 100644
|
||||||
|
--- a/lib/hivex.c
|
||||||
|
+++ b/lib/hivex.c
|
||||||
|
@@ -2819,7 +2819,8 @@ hivex_node_set_value (hive_h *h, hive_node_h node,
|
||||||
|
int retval = -1;
|
||||||
|
|
||||||
|
size_t nr_values = 0;
|
||||||
|
- for (hive_value_h *itr = prev_values; *itr != 0; ++itr)
|
||||||
|
+ hive_value_h *itr;
|
||||||
|
+ for (itr = prev_values; *itr != 0; ++itr)
|
||||||
|
++nr_values;
|
||||||
|
|
||||||
|
hive_set_value *values = malloc ((nr_values + 1) * (sizeof (hive_set_value)));
|
||||||
|
@@ -2874,8 +2875,9 @@ hivex_node_set_value (hive_h *h, hive_node_h node,
|
||||||
|
|
||||||
|
retval = hivex_node_set_values (h, node, nr_values, values, 0);
|
||||||
|
|
||||||
|
- leave_partial:
|
||||||
|
- for (int i = 0; i < alloc_ct; i += 2) {
|
||||||
|
+ leave_partial: ;
|
||||||
|
+ int i;
|
||||||
|
+ for (i = 0; i < alloc_ct; i += 2) {
|
||||||
|
free (values[i / 2].value);
|
||||||
|
if (i + 1 < alloc_ct && values[i / 2].key != NULL)
|
||||||
|
free (values[i / 2].key);
|
||||||
|
--
|
||||||
|
1.7.4.1
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
From 4bbdf555f88baeae0fa804a369a81a83908bd705 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||||||
|
Date: Thu, 30 Oct 2014 14:02:25 +0000
|
||||||
|
Subject: [PATCH 2/2] handle: Check that pages do not extend beyond the end of
|
||||||
|
the file.
|
||||||
|
|
||||||
|
Thanks: Mahmoud Al-Qudsi
|
||||||
|
---
|
||||||
|
lib/hivex.c | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/lib/hivex.c b/lib/hivex.c
|
||||||
|
index a3cbcf7..3a8f09b 100644
|
||||||
|
--- a/lib/hivex.c
|
||||||
|
+++ b/lib/hivex.c
|
||||||
|
@@ -247,6 +247,13 @@ hivex_open (const char *filename, int flags)
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (off + page_size > h->size) {
|
||||||
|
+ SET_ERRNO (ENOTSUP,
|
||||||
|
+ "%s: page size %zu at 0x%zx extends beyond end of file, bad registry",
|
||||||
|
+ filename, page_size, off);
|
||||||
|
+ goto error;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/* Read the blocks in this page. */
|
||||||
|
size_t blkoff;
|
||||||
|
struct ntreg_hbin_block *block;
|
||||||
|
--
|
||||||
|
2.1.0
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
From ebd2da993de7f5a18d4c9aa5ea87b56127e8788c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
Date: Fri, 30 Mar 2012 10:55:52 +0100
|
||||||
|
Subject: [PATCH 3/3] RHEL 5: build: Define builddir, abs_srcdir if they don't exist.
|
||||||
|
|
||||||
|
---
|
||||||
|
images/Makefile.am | 3 +++
|
||||||
|
perl/Makefile.am | 4 ++++
|
||||||
|
2 files changed, 7 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/images/Makefile.am b/images/Makefile.am
|
||||||
|
index 7ae6325..b0087f3 100644
|
||||||
|
--- a/images/Makefile.am
|
||||||
|
+++ b/images/Makefile.am
|
||||||
|
@@ -15,6 +15,9 @@
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
+# Old RHEL 5 autoconf doesn't have builddir.
|
||||||
|
+builddir ?= $(top_builddir)/images
|
||||||
|
+
|
||||||
|
EXTRA_DIST = minimal rlenvalue_test_hive
|
||||||
|
|
||||||
|
# 'large' is a large hive used for testing purposes. It is generated
|
||||||
|
diff --git a/perl/Makefile.am b/perl/Makefile.am
|
||||||
|
index 1722bcf..22dd98c 100644
|
||||||
|
--- a/perl/Makefile.am
|
||||||
|
+++ b/perl/Makefile.am
|
||||||
|
@@ -15,6 +15,10 @@
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
+# Old RHEL 5 autoconf doesn't have builddir or abs_srcdir.
|
||||||
|
+builddir ?= $(top_builddir)/perl
|
||||||
|
+abs_srcdir ?= $(shell unset CDPATH; cd $(srcdir) && pwd)
|
||||||
|
+
|
||||||
|
EXTRA_DIST = \
|
||||||
|
Makefile.PL.in \
|
||||||
|
run-perl-tests \
|
||||||
|
--
|
||||||
|
1.7.4.1
|
||||||
|
|
21
Makefile
21
Makefile
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: hivex
|
|
||||||
# $Id$
|
|
||||||
NAME := hivex
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
diff -up hivex-1.2.3/perl/Makefile.am.dirs hivex-1.2.3/perl/Makefile.am
|
||||||
|
--- hivex-1.2.3/perl/Makefile.am.dirs 2010-11-19 12:44:02.177644892 -0500
|
||||||
|
+++ hivex-1.2.3/perl/Makefile.am 2010-11-19 12:44:17.137516124 -0500
|
||||||
|
@@ -40,7 +40,7 @@ $(TESTS): src_deps all
|
||||||
|
TESTS_ENVIRONMENT = \
|
||||||
|
LD_LIBRARY_PATH=$(top_builddir)/lib/.libs
|
||||||
|
|
||||||
|
-INSTALLDIRS = site
|
||||||
|
+INSTALLDIRS = vendor
|
||||||
|
|
||||||
|
all: Makefile-pl src_deps
|
||||||
|
$(MAKE) -f Makefile-pl
|
||||||
|
diff -up hivex-1.2.3/perl/Makefile.in.dirs hivex-1.2.3/perl/Makefile.in
|
||||||
|
--- hivex-1.2.3/perl/Makefile.in.dirs 2010-11-19 12:44:08.577393593 -0500
|
||||||
|
+++ hivex-1.2.3/perl/Makefile.in 2010-11-19 12:44:32.717483099 -0500
|
||||||
|
@@ -740,7 +740,7 @@ EXTRA_DIST = \
|
||||||
|
@HAVE_PERL_TRUE@TESTS_ENVIRONMENT = \
|
||||||
|
@HAVE_PERL_TRUE@ LD_LIBRARY_PATH=$(top_builddir)/lib/.libs
|
||||||
|
|
||||||
|
-@HAVE_PERL_TRUE@INSTALLDIRS = site
|
||||||
|
+@HAVE_PERL_TRUE@INSTALLDIRS = vendor
|
||||||
|
all: all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
|
@ -0,0 +1,349 @@
|
||||||
|
Name: hivex
|
||||||
|
Version: 1.3.5
|
||||||
|
Release: 6%{?dist}
|
||||||
|
Summary: Read and write Windows Registry binary hive files
|
||||||
|
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: LGPLv2
|
||||||
|
URL: http://libguestfs.org/
|
||||||
|
Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: perl
|
||||||
|
#BuildRequires: perl-Test-Simple
|
||||||
|
BuildRequires: perl-Test-Pod
|
||||||
|
BuildRequires: perl-Test-Pod-Coverage
|
||||||
|
#BuildRequires: perl-ExtUtils-MakeMaker
|
||||||
|
BuildRequires: perl-IO-stringy
|
||||||
|
BuildRequires: perl-libintl
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: libxml2-devel
|
||||||
|
|
||||||
|
# This library used to be part of libguestfs. It won't install alongside
|
||||||
|
# the old version of libguestfs that included this library:
|
||||||
|
Conflicts: libguestfs <= 1:1.0.84
|
||||||
|
|
||||||
|
# Upstream patches for EPEL 5.
|
||||||
|
Patch0001: 0001-RHEL-5-configure-Fix-test-for-caml_raise_with_args.patch
|
||||||
|
Patch0002: 0002-RHEL-5-build-Fix-some-C99-isms-that-confuse-old-gcc.patch
|
||||||
|
Patch0003: 0003-RHEL-5-build-Define-builddir-abs_srcdir-if-they-don-.patch
|
||||||
|
|
||||||
|
# Fix Perl directory install path.
|
||||||
|
Patch4: %{name}-1.2.3-dirs.patch
|
||||||
|
BuildRequires: autoconf, automake, libtool
|
||||||
|
|
||||||
|
# Fix handling of invalid hive files.
|
||||||
|
# The first patch adds a macro which is used by the second two patches.
|
||||||
|
Patch5: set-errno.patch
|
||||||
|
Patch6: 0001-handle-Refuse-to-open-files-8192-bytes-in-size.patch
|
||||||
|
Patch7: 0002-handle-Check-that-pages-do-not-extend-beyond-the-end.patch
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Hive files are the undocumented binary blobs that Windows uses to
|
||||||
|
store the Windows Registry on disk. Hivex is a library that can read
|
||||||
|
and write to these files.
|
||||||
|
|
||||||
|
'hivexsh' is a shell you can use to interactively navigate a hive
|
||||||
|
binary file.
|
||||||
|
|
||||||
|
'hivexregedit' lets you export and merge to the textual regedit
|
||||||
|
format.
|
||||||
|
|
||||||
|
'hivexml' can be used to convert a hive file to a more useful XML
|
||||||
|
format.
|
||||||
|
|
||||||
|
In order to get access to the hive files themselves, you can copy them
|
||||||
|
from a Windows machine. They are usually found in
|
||||||
|
%%systemroot%%\system32\config. For virtual machines we recommend
|
||||||
|
using libguestfs or guestfish to copy out these files. libguestfs
|
||||||
|
also provides a useful high-level tool called 'virt-win-reg' (based on
|
||||||
|
hivex technology) which can be used to query specific registry keys in
|
||||||
|
an existing Windows VM.
|
||||||
|
|
||||||
|
For Perl bindings, see 'perl-hivex'.
|
||||||
|
|
||||||
|
For Python bindings, see 'python-hivex'.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development tools and libraries for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
%{name}-devel contains development tools and libraries
|
||||||
|
for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Statically linked library for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description static
|
||||||
|
%{name}-static contains the statically linked library
|
||||||
|
for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n perl-%{name}
|
||||||
|
Summary: Perl bindings for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
|
||||||
|
%description -n perl-%{name}
|
||||||
|
perl-%{name} contains Perl bindings for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python-%{name}
|
||||||
|
Summary: Python bindings for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
|
%description -n python-%{name}
|
||||||
|
python-%{name} contains Python bindings for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%patch0001 -p1
|
||||||
|
%patch0002 -p1
|
||||||
|
%patch0003 -p1
|
||||||
|
%patch4 -p1 -b .dirs
|
||||||
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
|
%patch7 -p1
|
||||||
|
autoreconf
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
export OCAMLC=no
|
||||||
|
%configure --disable-ruby
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
# Remove unwanted libtool *.la file:
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/libhivex.la
|
||||||
|
|
||||||
|
# Remove unwanted Perl files:
|
||||||
|
find $RPM_BUILD_ROOT -name perllocal.pod -delete
|
||||||
|
find $RPM_BUILD_ROOT -name .packlist -delete
|
||||||
|
find $RPM_BUILD_ROOT -name '*.bs' -delete
|
||||||
|
|
||||||
|
# Remove unwanted Python files:
|
||||||
|
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.la
|
||||||
|
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README LICENSE
|
||||||
|
%{_bindir}/hivexget
|
||||||
|
%{_bindir}/hivexml
|
||||||
|
%{_bindir}/hivexregedit
|
||||||
|
%{_bindir}/hivexsh
|
||||||
|
%{_libdir}/libhivex.so.*
|
||||||
|
%{_mandir}/man1/hivexget.1*
|
||||||
|
%{_mandir}/man1/hivexml.1*
|
||||||
|
%{_mandir}/man1/hivexregedit.1*
|
||||||
|
%{_mandir}/man1/hivexsh.1*
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE
|
||||||
|
%{_libdir}/libhivex.so
|
||||||
|
%{_mandir}/man3/hivex.3*
|
||||||
|
%{_includedir}/hivex.h
|
||||||
|
%{_libdir}/pkgconfig/hivex.pc
|
||||||
|
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE
|
||||||
|
%{_libdir}/libhivex.a
|
||||||
|
|
||||||
|
|
||||||
|
%files -n perl-%{name}
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{perl_vendorarch}/*
|
||||||
|
%{_mandir}/man3/Win::Hivex.3pm*
|
||||||
|
%{_mandir}/man3/Win::Hivex::Regedit.3pm*
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python-%{name}
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{python_sitearch}/*.py
|
||||||
|
%{python_sitearch}/*.pyc
|
||||||
|
%{python_sitearch}/*.pyo
|
||||||
|
%{python_sitearch}/*.so
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Nov 25 2014 Richard W.M. Jones <rjones@redhat.com> - 1:1.3.5-6
|
||||||
|
- Fix handling of invalid hive files.
|
||||||
|
|
||||||
|
* Fri Mar 30 2012 Richard W.M. Jones <rjones@redhat.com> - 1:1.3.5-5
|
||||||
|
- Copy Fedora Rawhide to EPEL 5 (RHBZ#808193).
|
||||||
|
- Disable OCaml, Ruby bindings, since these can't be built on RHEL 5.
|
||||||
|
- Include upstream patches to fix RHEL 5 build.
|
||||||
|
|
||||||
|
* Fri Mar 23 2012 Richard W.M. Jones <rjones@redhat.com> - 1:1.3.5-5
|
||||||
|
- Don't need to rerun the generator (thanks Dan Horák).
|
||||||
|
|
||||||
|
* Tue Mar 13 2012 Richard W.M. Jones <rjones@redhat.com> - 1:1.3.5-4
|
||||||
|
- New upstream version 1.3.5.
|
||||||
|
- Remove upstream patch.
|
||||||
|
- Depend on automake etc. for the patch.
|
||||||
|
|
||||||
|
* Thu Feb 9 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-8
|
||||||
|
- ruby(abi) 1.9.1.
|
||||||
|
|
||||||
|
* Wed Feb 8 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-7
|
||||||
|
- Bump and rebuild for Ruby update.
|
||||||
|
- Add upstream patch to fix bindings for Ruby 1.9.
|
||||||
|
- Add non-upstream patch to pass --vendor flag to extconf.rb
|
||||||
|
|
||||||
|
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-3
|
||||||
|
- Rebuild for OCaml 3.12.1.
|
||||||
|
|
||||||
|
* Thu Dec 8 2011 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-2
|
||||||
|
- Disable OCaml on ppc64.
|
||||||
|
- Ensure OCaml files are deleted when not packaged.
|
||||||
|
|
||||||
|
* Tue Nov 29 2011 Richard W.M. Jones <rjones@redhat.com> - 1.3.3-1
|
||||||
|
- New upstream version 1.3.3.
|
||||||
|
- Rebased gnulib to work around RHBZ#756981.
|
||||||
|
- Remove patches which are now upstream.
|
||||||
|
|
||||||
|
* Mon Oct 24 2011 Richard W.M. Jones <rjones@redhat.com> - 1.3.2-3
|
||||||
|
- New upstream version 1.3.2.
|
||||||
|
- Add upstream patch to fix building of hivexsh, hivexget.
|
||||||
|
|
||||||
|
* Fri Aug 26 2011 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-2
|
||||||
|
- New upstream version 1.3.1.
|
||||||
|
- Remove patch, now upstream.
|
||||||
|
- Don't need hack for making an unversioned Python module.
|
||||||
|
|
||||||
|
* Mon Aug 15 2011 Richard W.M. Jones <rjones@redhat.com> - 1.3.0-3
|
||||||
|
- New upstream version 1.3.0.
|
||||||
|
- This version adds Ruby bindings, so there is a new subpackage 'ruby-hivex'.
|
||||||
|
- Add upstream patch to fix Ruby tests.
|
||||||
|
- Remove epoch macro in ruby-hivex dependency.
|
||||||
|
|
||||||
|
* Fri Aug 12 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.8-1
|
||||||
|
- New upstream version 1.2.8.
|
||||||
|
- Remove 4 upstream patches.
|
||||||
|
|
||||||
|
* Fri Jul 22 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.7-9
|
||||||
|
- Add upstream patch to fix Perl CCFLAGS for Perl 5.14 on i686.
|
||||||
|
- Enable 'make check'.
|
||||||
|
|
||||||
|
* Thu Jul 21 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.7-6
|
||||||
|
- i686 package is broken, experimentally rebuild it.
|
||||||
|
|
||||||
|
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.2.7-5
|
||||||
|
- Perl mass rebuild
|
||||||
|
|
||||||
|
* Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.2.7-4
|
||||||
|
- Perl 5.14 mass rebuild
|
||||||
|
|
||||||
|
* Tue May 17 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.7-3
|
||||||
|
- New upstream version 1.2.7.
|
||||||
|
- Removed patch which is now upstream.
|
||||||
|
- Add upstream patches to fix ocaml install rule.
|
||||||
|
|
||||||
|
* Thu May 12 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.6-2
|
||||||
|
- New upstream version 1.2.6.
|
||||||
|
- Removed patch which is now upstream.
|
||||||
|
- Add upstream patch to fix ocaml tests.
|
||||||
|
|
||||||
|
* Thu Apr 28 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-2
|
||||||
|
- Fix Python bindings on 32 bit arch with upstream patch.
|
||||||
|
|
||||||
|
* Wed Apr 13 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-1
|
||||||
|
- New upstream version 1.2.5.
|
||||||
|
- This version fixes a number of important memory issues found by
|
||||||
|
valgrind and upgrading to this version is recommended for all users.
|
||||||
|
- Remove patch now upstream.
|
||||||
|
|
||||||
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 14 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-6
|
||||||
|
- Fix multilib conflicts in *.pyc and *.pyo files.
|
||||||
|
- Only install unversioned *.so file for Python bindings.
|
||||||
|
|
||||||
|
* Wed Jan 5 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-4
|
||||||
|
- Rebuild against OCaml 3.12.0.
|
||||||
|
|
||||||
|
* Thu Dec 16 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-3
|
||||||
|
- Backport upstream patch to fix segfault in Hivex.value_value binding.
|
||||||
|
|
||||||
|
* Thu Dec 2 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-1
|
||||||
|
- New upstream version 1.2.4.
|
||||||
|
- This adds Python bindings (python-hivex subpackage).
|
||||||
|
- Fix Source0.
|
||||||
|
|
||||||
|
* Fri Nov 19 2010 Dan Horák <dan[at]danny.cz> - 1.2.3-3
|
||||||
|
- fix built with recent perl
|
||||||
|
|
||||||
|
* Tue Sep 7 2010 Dan Horák <dan[at]danny.cz> - 1.2.3-2
|
||||||
|
- conditionalize ocaml support
|
||||||
|
|
||||||
|
* Fri Aug 27 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
|
||||||
|
- New upstream version 1.2.3.
|
||||||
|
|
||||||
|
* Wed Aug 25 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-3
|
||||||
|
- Create a hivex-static subpackage.
|
||||||
|
|
||||||
|
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2.2-2
|
||||||
|
- Mass rebuild with perl-5.12.0
|
||||||
|
|
||||||
|
* Wed Apr 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-1
|
||||||
|
- New upstream version 1.2.2.
|
||||||
|
|
||||||
|
* Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.1-1
|
||||||
|
- New upstream version 1.2.1.
|
||||||
|
- Includes new tool for exporting and merging in regedit format.
|
||||||
|
|
||||||
|
* Mon Mar 1 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-2
|
||||||
|
- New upstream version 1.2.0.
|
||||||
|
- This includes OCaml and Perl bindings, so add these as subpackages.
|
||||||
|
|
||||||
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-3
|
||||||
|
- Missing Epoch in conflicts version fixed.
|
||||||
|
|
||||||
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-2
|
||||||
|
- Add Conflicts libguestfs <= 1.0.84.
|
||||||
|
|
||||||
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-1
|
||||||
|
- Initial Fedora RPM.
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- hivex-1.3.5/lib/hivex.c~ 2014-11-25 13:36:48.399066057 +0000
|
||||||
|
+++ hivex-1.3.5/lib/hivex.c 2014-11-25 13:39:13.171001085 +0000
|
||||||
|
@@ -48,6 +48,8 @@
|
||||||
|
#include "hivex-internal.h"
|
||||||
|
#include "byte_conversions.h"
|
||||||
|
|
||||||
|
+#define SET_ERRNO(v,fs,...) (errno = (v))
|
||||||
|
+
|
||||||
|
/* These limits are in place to stop really stupid stuff and/or exploits. */
|
||||||
|
#define HIVEX_MAX_SUBKEYS 15000
|
||||||
|
#define HIVEX_MAX_VALUES 10000
|
Loading…
Reference in New Issue