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
89927fca
Commit
89927fca
authored
12 years ago
by
bdr7fv
Browse files
Options
Downloads
Patches
Plain Diff
Added a check for a null func pointer in Rewrite_Utility.cpp
Former-commit-id: b4b7c7ef23662a33672cc7707045d6e783cd8488
parent
3743e02e
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/transforms/Rewrite_Utility.cpp
+7
-2
7 additions, 2 deletions
tools/transforms/Rewrite_Utility.cpp
with
7 additions
and
2 deletions
tools/transforms/Rewrite_Utility.cpp
+
7
−
2
View file @
89927fca
...
...
@@ -111,8 +111,13 @@ Instruction_t* allocateNewInstruction(FileIR_t* virp, db_id_t p_fileID,Function_
virp
->
GetInstructions
().
insert
(
instr
);
virp
->
GetAddresses
().
insert
(
a
);
inserted_instr
[
func
->
GetName
()].
insert
(
instr
);
inserted_addr
[
func
->
GetName
()].
insert
(
a
);
string
name
=
"1_null_func_dummy_1"
;
if
(
func
!=
NULL
)
name
=
func
->
GetName
();
inserted_instr
[
name
].
insert
(
instr
);
inserted_addr
[
name
].
insert
(
a
);
return
instr
;
}
...
...
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