From 68b13d6bf0338c789ad19cf7ed0b4436e351a517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 2 Apr 2011 12:35:23 +0200 Subject: [PATCH] Dreary offset work. --- Memory.xml | 38 ++++++++++++++++++++++++++++++- library/DFProcess-linux-base.cpp | 2 +- library/DFProcess_C.cpp | 1 + tools/supported/SegmentedFinder.h | 1 + 4 files changed, 40 insertions(+), 2 deletions(-) diff --git a/Memory.xml b/Memory.xml index e527aa8d9..da19ec4fa 100644 --- a/Memory.xml +++ b/Memory.xml @@ -2155,6 +2155,7 @@ + Engravings: 0x16B0A78 .-"""-. ' \ @@ -2684,6 +2685,17 @@ + +
+ One of the two, really: + 0x940b998 + 0x940b9a4 +
+ + +
+ +
@@ -2769,9 +2781,33 @@
- + +
+ + + +
+
+
+
+
+ + + + + + + + + + + + + Engravings: 0x93f7918 + there are some possibly related vectors right next to it. + diff --git a/library/DFProcess-linux-base.cpp b/library/DFProcess-linux-base.cpp index bbe4dc1ec..dfa50777e 100644 --- a/library/DFProcess-linux-base.cpp +++ b/library/DFProcess-linux-base.cpp @@ -89,7 +89,7 @@ void LinuxProcessBase::getMemRanges( vector & ranges ) { t_memrange temp; temp.name[0] = 0; - sscanf(buffer, "%zx-%zx %s %zx %2zu:%2zu %zu %s", + sscanf(buffer, "%zx-%zx %s %zx %2zu:%2zu %zu %[^\n]s", &start, &end, (char*)&permissions, diff --git a/library/DFProcess_C.cpp b/library/DFProcess_C.cpp index e7c589b50..870344e28 100644 --- a/library/DFProcess_C.cpp +++ b/library/DFProcess_C.cpp @@ -25,6 +25,7 @@ distribution. #include #include #include +#include using namespace std; diff --git a/tools/supported/SegmentedFinder.h b/tools/supported/SegmentedFinder.h index 6177d0817..198d4e082 100644 --- a/tools/supported/SegmentedFinder.h +++ b/tools/supported/SegmentedFinder.h @@ -12,6 +12,7 @@ class SegmentFinder { _DF = DF; mr_ = mr; + valid=false; if(mr.valid) { mr_.buffer = (uint8_t *)malloc (mr_.end - mr_.start);