From c59e15a16737036a47437de5080bf848fad54711 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 25 Nov 2014 13:29:25 +0000 Subject: [PATCH] Backport patches to work with old hivex 1.3.5 --- 0001-handle-Refuse-to-open-files-8192-bytes-in-size.patch | 8 ++++---- ...le-Check-that-pages-do-not-extend-beyond-the-end.patch | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/0001-handle-Refuse-to-open-files-8192-bytes-in-size.patch b/0001-handle-Refuse-to-open-files-8192-bytes-in-size.patch index ac5dbf6..f0b223d 100644 --- a/0001-handle-Refuse-to-open-files-8192-bytes-in-size.patch +++ b/0001-handle-Refuse-to-open-files-8192-bytes-in-size.patch @@ -9,13 +9,13 @@ contain a root node). Thanks: Mahmoud Al-Qudsi --- - lib/handle.c | 7 +++++++ + lib/hivex.c | 7 +++++++ 1 file changed, 7 insertions(+) -diff --git a/lib/handle.c b/lib/handle.c +diff --git a/lib/hivex.c b/lib/hivex.c index 62a8644..a3cbcf7 100644 ---- a/lib/handle.c -+++ b/lib/handle.c +--- a/lib/hivex.c ++++ b/lib/hivex.c @@ -104,6 +104,13 @@ hivex_open (const char *filename, int flags) h->size = statbuf.st_size; diff --git a/0002-handle-Check-that-pages-do-not-extend-beyond-the-end.patch b/0002-handle-Check-that-pages-do-not-extend-beyond-the-end.patch index 7977e16..6fe8415 100644 --- a/0002-handle-Check-that-pages-do-not-extend-beyond-the-end.patch +++ b/0002-handle-Check-that-pages-do-not-extend-beyond-the-end.patch @@ -6,13 +6,13 @@ Subject: [PATCH 2/2] handle: Check that pages do not extend beyond the end of Thanks: Mahmoud Al-Qudsi --- - lib/handle.c | 7 +++++++ + lib/hivex.c | 7 +++++++ 1 file changed, 7 insertions(+) -diff --git a/lib/handle.c b/lib/handle.c +diff --git a/lib/hivex.c b/lib/hivex.c index a3cbcf7..3a8f09b 100644 ---- a/lib/handle.c -+++ b/lib/handle.c +--- a/lib/hivex.c ++++ b/lib/hivex.c @@ -247,6 +247,13 @@ hivex_open (const char *filename, int flags) goto error; }