diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-11-07 19:44:29 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-11-07 19:44:29 (GMT) |
commit | e5808e7df6eb36ff8e150e57e8691a0b05222844 (patch) | |
tree | 05f03d2052641a7d1b1650e6f7d6dbed089d563a /src/analysis/contents | |
parent | 59289d47cba1dbd078ad2bb5df0be74fa7c958b5 (diff) |
Fixed a little bug when reading final data.
Diffstat (limited to 'src/analysis/contents')
-rw-r--r-- | src/analysis/contents/file.c | 4 |
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); |