summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/analysis/contents/file.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 577579c..bc94578 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+16-11-07 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/analysis/contents/file.c:
+ Fix a little bug when reading final data.
+
16-11-06 Cyrille Bagard <nocbos@gmail.com>
* src/glibext/gbufferline.c:
diff --git a/src/analysis/contents/file.c b/src/analysis/contents/file.c
index 4a183aa..114ddd2 100644
--- a/src/analysis/contents/file.c
+++ b/src/analysis/contents/file.c
@@ -119,7 +119,7 @@ static bool g_file_content_read_leb128(const GFileContent *, vmpa2t *, leb128_t
/* Indique le type défini par la GLib pour les contenus de données. */
G_DEFINE_TYPE_WITH_CODE(GFileContent, g_file_content, G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE(G_TYPE_BIN_CONTENT, g_file_content_interface_init))
+ G_IMPLEMENT_INTERFACE(G_TYPE_BIN_CONTENT, g_file_content_interface_init));
/******************************************************************************
@@ -503,7 +503,7 @@ static bool g_file_content_seek(const GFileContent *content, vmpa2t *addr, phys_
if (offset == VMPA_NO_PHYSICAL)
return false;
- if ((offset + length) >= get_mrange_length(&content->range))
+ if ((offset + length) > get_mrange_length(&content->range))
return false;
advance_vmpa(addr, length);