Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
45e7287d
Commit
45e7287d
authored
8 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
sanity check input file for ps-analyze.
Former-commit-id: f4592dc6cad7ff9d6458af410885d816a3ba2c23
parent
e9a5ccae
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
tools/ps_analyze.sh
+43
-1
43 additions, 1 deletion
tools/ps_analyze.sh
with
43 additions
and
1 deletion
tools/ps_analyze.sh
+
43
−
1
View file @
45e7287d
...
...
@@ -672,6 +672,43 @@ check_for_bad_funcs()
done
}
compatcheck
()
{
infile
=
$1
if
[
!
-f
$infile
]
;
then
echo
File not found:
$infile
usage
exit
2
fi
file
$1
|egrep
"ELF.*executable"
>
/dev/null 2>&1
if
[
$?
=
0
]
;
then
echo
Detected ELF file...
return
fi
file
$1
|egrep
"ELF.*shared object"
>
/dev/null 2>&1
if
[
$?
=
0
]
;
then
echo
Detected ELF shared object...
return
fi
file
$1
|egrep
"CGC.*executable"
>
/dev/null 2>&1
if
[
$?
=
0
]
;
then
echo
Detected CGCEF file...
return
fi
echo
------------------------
echo
"Input file (
$infile
) failed compatability check. Cannot protect this file:"
file
$infile
echo
------------------------
usage
exit
2
}
#
# turn on debugging output if it's requested.
#
...
...
@@ -743,6 +780,11 @@ shift
check_options
"
$@
"
#
# check for input file existance and file type
#
compatcheck
$orig_exe
#
# new program
#
...
...
@@ -842,7 +884,7 @@ perform_step signconv_func_monitor heaprand $PEASOUP_HOME/tools/update_env_var.s
#
# turn off runtime pr
r
otections for BED. turn off runtime prrotections for BED. turn off runtime prrotections for BED.
# turn off runtime protections for BED. turn off runtime prrotections for BED. turn off runtime prrotections for BED.
#
STRATA_DOUBLE_FREE
=
0
STRATA_HEAPRAND
=
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