Posts: 117
Threads: 25
Joined: Apr 2016
Reputation:
0
There is no such Directive in MISRA C 2012 (Directive 4.13 is the highest number)?
<t></t>
Posts: 117
Threads: 25
Joined: Apr 2016
Reputation:
0
Oh, I see.
But i don't think a local pointer classifies as external resource like specified in this particular directive.
If data of type myStruct is received over a communication channel you obviously need some sort of checksum.
<t></t>
Posts: 4
Threads: 2
Joined: Feb 2019
Reputation:
0
Right.
I think that the problem was that these functions were not being used in the application, so the MISRA check was triggering this.
Now that I really use them in the application, I have no more errors.
Thanks for the feedback!
<t></t>
Posts: 632
Threads: 18
Joined: Jan 2006
Reputation:
1
The amplification of Directive 4.14 gives a list of the sort of "external sources" that are covered by this directive.
Posted by and on behalf of the MISRA C Working Group