Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_callbacks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_callbacks
Commits
5ca20a87
Commit
5ca20a87
authored
9 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
added delayed dealloc functionality
parent
aaf09f2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
watchsyscall/wa_callbacks.c
+19
-3
19 additions, 3 deletions
watchsyscall/wa_callbacks.c
with
19 additions
and
3 deletions
watchsyscall/wa_callbacks.c
+
19
−
3
View file @
5ca20a87
...
...
@@ -245,9 +245,9 @@ int zipr_is_addr_ok(int ret, unsigned int to_check)
{
page_no
++
;
#ifdef DEBUG_ADD
print_str_debug
(
"checking page="
);
print_int_debug
((
int
)
page_no
);
print_str_debug
(
"
\n
"
);
print_str_debug
(
"checking page="
);
print_int_debug
((
int
)
page_no
);
print_str_debug
(
"
\n
"
);
#endif
int
i
;
for
(
i
=
0
;
i
<
al
->
pairs
;
i
++
)
...
...
@@ -277,3 +277,19 @@ int zipr_is_addr_ok(int ret, unsigned int to_check)
cgc_terminate
(
199
);
return
0
;
}
int
zipr_delayed_deallocate
(
unsigned
int
ret_pc
,
reg_values_t
rv
)
{
void
*
addr
=
rv
.
ebx
;
unsigned
int
length
=
rv
.
ecx
;
static
void
*
old_addr
=
0
;
static
unsigned
int
old_length
=
0
;
cgc_deallocate
(
old_addr
,
old_length
);
old_addr
=
addr
;
old_length
=
length
;
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment