Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Charles Southerland
frama-c
Commits
e784b410
Commit
e784b410
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[analysis-scripts] Ensure argv array is properly terminated
parent
92419510
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
share/analysis-scripts/fc_stubs.c
+1
-1
1 addition, 1 deletion
share/analysis-scripts/fc_stubs.c
with
1 addition
and
1 deletion
share/analysis-scripts/fc_stubs.c
+
1
−
1
View file @
e784b410
...
@@ -12,7 +12,7 @@ static volatile int nondet;
...
@@ -12,7 +12,7 @@ static volatile int nondet;
int
eva_main
()
{
int
eva_main
()
{
int
argc
=
Frama_C_interval
(
0
,
5
);
int
argc
=
Frama_C_interval
(
0
,
5
);
char
argv0
[
256
],
argv1
[
256
],
argv2
[
256
],
argv3
[
256
],
argv4
[
256
];
char
argv0
[
256
],
argv1
[
256
],
argv2
[
256
],
argv3
[
256
],
argv4
[
256
];
char
*
argv
[
5
]
=
{
argv0
,
argv1
,
argv2
,
argv3
,
argv4
};
char
*
argv
[
6
]
=
{
argv0
,
argv1
,
argv2
,
argv3
,
argv4
,
0
};
//@ loop unroll 5;
//@ loop unroll 5;
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
Frama_C_make_unknown
(
argv
[
i
],
255
);
Frama_C_make_unknown
(
argv
[
i
],
255
);
...
...
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