Backport patches to work with old hivex 1.3.5

This commit is contained in:
Richard W.M. Jones 2014-11-25 13:29:25 +00:00
parent fd938bff1d
commit c59e15a167
2 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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;
}