summaryrefslogtreecommitdiff
path: root/src/analysis/contents
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/contents')
-rw-r--r--src/analysis/contents/file.c4
1 files changed, 2 insertions, 2 deletions
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);