Skip to content

Commit

Permalink
Set sym->ptr in find_symbol_address call
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Henderson committed Jun 29, 2011
1 parent 6da37b9 commit 1aca113
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions hijacks.c
Expand Up @@ -76,8 +76,6 @@ void stop_my_code(struct kernsym *sym) {

void hijack_syscall(struct kernsym *sym, unsigned long *code) {

sym->ptr = sym->addr;

memcpy(sym->jump_code, jump_code, CODESIZE);

// tell the jump_code where we want to go
Expand Down
1 change: 1 addition & 0 deletions symbols.c
Expand Up @@ -35,6 +35,7 @@ int find_symbol_address(struct kernsym *sym, const char *symbol_name) {
return -EFAULT;

sym->size = (unsigned int *)sym->end_addr - (unsigned int *)sym->addr;
sym->ptr = (unsigned long)sym->addr;

return 0;
}
Expand Down

0 comments on commit 1aca113

Please sign in to comment.