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
32978fdb
Commit
32978fdb
authored
7 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
better output
parent
70aa1438
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datashadow/datashadow_callbacks.c
+2
-2
2 additions, 2 deletions
datashadow/datashadow_callbacks.c
with
2 additions
and
2 deletions
datashadow/datashadow_callbacks.c
+
2
−
2
View file @
32978fdb
...
...
@@ -66,7 +66,7 @@ void fptr_shadow_check_64(int p_shadowIndex, int p_policy, void **p_shadow)
switch
(
p_policy
)
{
case
SHADOW_CONTINUE
:
#ifdef DEBUG
my_strcpy
(
msg
,
"Warning: overwrite of
function pointer
detected -- restoring saved value: shadow: 0x"
);
my_strcpy
(
msg
,
"Warning: overwrite of
critical data
detected -- restoring saved value: shadow: 0x"
);
itox
(
*
p_shadow
,
&
msg
[
strlen
(
msg
)]);
my_strcpy
(
&
msg
[
strlen
(
msg
)],
"
\n
"
);
...
...
@@ -81,7 +81,7 @@ void fptr_shadow_check_64(int p_shadowIndex, int p_policy, void **p_shadow)
itox
(
*
p_shadow
,
&
msg
[
strlen
(
msg
)]);
my_strcpy
(
&
msg
[
strlen
(
msg
)],
" shadow idx: 0x"
);
itox
(
p_shadowIndex
,
&
msg
[
strlen
(
msg
)]);
my_strcpy
(
&
msg
[
strlen
(
msg
)],
" : Warning: overwrite of
function pointer or
critical detected -- induce segfault
\n
"
);
my_strcpy
(
&
msg
[
strlen
(
msg
)],
" : Warning: overwrite of critical
data
detected -- induce segfault
\n
"
);
write
(
2
,
msg
,
strlen
(
msg
));
my_strcpy
(
0
,
""
);
// induce crash
}
...
...
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