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
Deploy
Releases
Container Registry
Model registry
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
pub
frama-c
Commits
ad448504
Commit
ad448504
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Doc] add note about UB CC.50
parent
a9010b28
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
doc/userman/user-compliance.tex
+10
-2
10 additions, 2 deletions
doc/userman/user-compliance.tex
with
10 additions
and
2 deletions
doc/userman/user-compliance.tex
+
10
−
2
View file @
ad448504
...
@@ -97,7 +97,7 @@ emitted by the Eva plugin and C undefined behaviors.
...
@@ -97,7 +97,7 @@ emitted by the Eva plugin and C undefined behaviors.
initialization
&
{
\em
CC.11
}
,
{
\em
CC.180
}
&
\\
initialization
&
{
\em
CC.11
}
,
{
\em
CC.180
}
&
\\
initialization
\_
of
\_
union
&
{
\em
CC.11
}
,
{
\em
CC.180
}
&
\\
initialization
\_
of
\_
union
&
{
\em
CC.11
}
,
{
\em
CC.180
}
&
\\
mem
\_
access
&
{
\em
CC.33
}
,
{
\em
CC.62
}
,
{
\em
CC.64
}
&
\\
mem
\_
access
&
{
\em
CC.33
}
,
{
\em
CC.62
}
,
{
\em
CC.64
}
&
\\
overflow
&
{
\em
CC.36
}
&
\\
overflow
&
{
\em
CC.36
}
,
{
\em
CC.50
}
&
For
{
\em
CC.50
}
, see
{
\em
Note about
\texttt
{
ptrdiff
\_
t
}}
.
\\
overlap
&
{
\em
CC.54
}
&
{
\em
CC.100
}
is handled by
\FramaC
's libc ACSL specifications.
\\
overlap
&
{
\em
CC.54
}
&
{
\em
CC.100
}
is handled by
\FramaC
's libc ACSL specifications.
\\
pointer
\_
value
&
{
\em
CC.46
}
,
{
\em
CC.47
}
,
{
\em
CC.62
}
&
\\
pointer
\_
value
&
{
\em
CC.46
}
,
{
\em
CC.47
}
,
{
\em
CC.62
}
&
\\
ptr
\_
comparison
&
{
\em
CC.53
}
&
\\
ptr
\_
comparison
&
{
\em
CC.53
}
&
\\
...
@@ -112,7 +112,15 @@ are not handled by specific categories of RTEs, but instead by ACSL
...
@@ -112,7 +112,15 @@ are not handled by specific categories of RTEs, but instead by ACSL
specifications in
\FramaC
's libc. These specifications are used by some
specifications in
\FramaC
's libc. These specifications are used by some
analyzers and result in warnings and errors when violated.
analyzers and result in warnings and errors when violated.
%50 - The result of subtracting two pointers is not representable in an object of type ptrdiff_t (6.5.6).
\paragraph
{
Note about
\texttt
{
ptrdiff
\_
t
}}
{
\em
CC.50
}
deals with pointer subtractions, related to type
\texttt
{
ptrdiff
\_
t
}
.
\FramaC
does not perform specific handling for this type,
but in all standard machdeps defined in
\FramaC
, its definition
is such that pointer subtraction will lead to a signed overflow
if the difference cannot be represented in
\texttt
{
ptrdiff
\_
t
}
,
thus preventing the undefined behavior. However, if option
\texttt
{
-no-warn-signed-overflow
}
is used, or in a custom machdep,
this may not hold.
\section
{
C Undefined Behaviors
{
\em
not
}
handled by
\FramaC
}
\section
{
C Undefined Behaviors
{
\em
not
}
handled by
\FramaC
}
...
...
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