[Forensics-changes] [yara] 388/415: Fix issue #104
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit 2cb1af79c05c21bbd869b4e6be6418d05c7d0d87
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Tue Jan 28 13:18:52 2014 +0100
Fix issue #104
---
libyara/proc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libyara/proc.c b/libyara/proc.c
index de32d6e..124dd5a 100644
--- a/libyara/proc.c
+++ b/libyara/proc.c
@@ -80,7 +80,8 @@ int yr_process_get_memory(
address = si.lpMinimumApplicationAddress;
- while (VirtualQueryEx(hProcess, address, &mbi, sizeof(mbi)) != 0)
+ while (address < si.MaximumApplicationAddress &&
+ VirtualQueryEx(hProcess, address, &mbi, sizeof(mbi)) != 0)
{
if (mbi.State == MEM_COMMIT && ((mbi.Protect & PAGE_NOACCESS) == 0))
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list