Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Unified Diff: library.h

Issue 8596009: Add test for patching a system call instruction (Closed) Base URL: https://seccompsandbox.googlecode.com/svn/trunk
Patch Set: Add comment Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | library.cc » ('j') | tests/test_patching.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: library.h
diff --git a/library.h b/library.h
index c90a9e6e313f7579d9ac77fcb02ec82ff582fdf7..5f0d781a6fba20f6590982ac44c4278525c76e95 100644
--- a/library.h
+++ b/library.h
@@ -119,6 +119,8 @@ class Library {
const Elf_Shdr* getSection(const string& section);
void makeWritable(bool state) const;
void patchSystemCalls();
+ void patchSystemCallsInRange(char* start, char* stop,
+ char** extraSpace, int* extraLength);
bool isVDSO() const { return isVDSO_; }
protected:
@@ -174,7 +176,7 @@ class Library {
SymbolTable symbols_;
char* image_;
size_t image_size_;
- static Maps* maps_;
+ Maps* maps_;
static char* __kernel_vsyscall;
static char* __kernel_sigreturn;
static char* __kernel_rt_sigreturn;
« no previous file with comments | « no previous file | library.cc » ('j') | tests/test_patching.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698