Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e7728c41
Commit
e7728c41
authored
Sep 21, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Try writing to /proc/<pid>/mem in write_process_memory().
parent
a684b634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
ptrace.c
server/ptrace.c
+19
-0
No files found.
server/ptrace.c
View file @
e7728c41
...
@@ -463,6 +463,25 @@ int write_process_memory( struct process *process, client_ptr_t ptr, data_size_t
...
@@ -463,6 +463,25 @@ int write_process_memory( struct process *process, client_ptr_t ptr, data_size_t
set_error
(
STATUS_ACCESS_DENIED
);
set_error
(
STATUS_ACCESS_DENIED
);
goto
done
;
goto
done
;
}
}
if
(
len
>
3
)
{
char
procmem
[
24
];
int
fd
;
sprintf
(
procmem
,
"/proc/%u/mem"
,
process
->
unix_pid
);
if
((
fd
=
open
(
procmem
,
O_WRONLY
))
!=
-
1
)
{
ssize_t
r
=
pwrite
(
fd
,
src
,
size
,
ptr
);
close
(
fd
);
if
(
r
==
size
)
{
ret
=
1
;
goto
done
;
}
}
}
/* first word is special */
/* first word is special */
if
(
len
>
1
)
if
(
len
>
1
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment