Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CFI
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
CFI
Commits
e0dcb562
Commit
e0dcb562
authored
6 years ago
by
Matthew McGill
Browse files
Options
Downloads
Patches
Plain Diff
Fixed silent failure issue
parent
e0565231
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
scfi_driver.cpp
+12
-1
12 additions, 1 deletion
scfi_driver.cpp
with
12 additions
and
1 deletion
scfi_driver.cpp
+
12
−
1
View file @
e0dcb562
...
...
@@ -218,6 +218,7 @@ int main(int argc, char **argv)
cout
<<
"selective_cfi.exe started
\n
"
;
bool
one_success
=
false
;
bool
seen_failures
=
false
;
for
(
set
<
File_t
*>::
iterator
it
=
pidp
->
GetFiles
().
begin
();
it
!=
pidp
->
GetFiles
().
end
();
++
it
)
...
...
@@ -245,15 +246,18 @@ int main(int argc, char **argv)
}
else
{
seen_failures
=
true
;
cout
<<
"Skipping (no changes) "
<<
this_file
->
GetURL
()
<<
endl
;
}
}
catch
(
DatabaseError_t
pnide
)
{
seen_failures
=
true
;
cerr
<<
programName
<<
": Unexpected database error: "
<<
pnide
<<
"file url: "
<<
this_file
->
GetURL
()
<<
endl
;
}
catch
(...)
{
seen_failures
=
true
;
cerr
<<
programName
<<
": Unexpected error file url: "
<<
this_file
->
GetURL
()
<<
endl
;
}
}
// end file iterator
...
...
@@ -265,6 +269,13 @@ int main(int argc, char **argv)
pqxx_interface
.
Commit
();
}
return
0
;
if
(
seen_failures
)
{
return
1
;
}
else
{
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