MISRA Discussion Forums
8.9 and 3rd party library code - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA-C: 2004 rules (https://forum.misra.org.uk/forumdisplay.php?fid=17)
+---- Forum: 6.8 Declarations and Definitions (https://forum.misra.org.uk/forumdisplay.php?fid=35)
+---- Thread: 8.9 and 3rd party library code (/showthread.php?tid=889)



8.9 and 3rd party library code - gs - 19-03-2012

Hi,
Does rule #8.9 apply to objects/functions declared in 3rd party library code?

Thanks


Re: 8.9 and 3rd party library code - misra-c - 22-03-2012

Yes, Rule 8.9 does apply to 3rd party libraries (see Rule 3.6).

If you don't have the source code for the library then you can:
  • write a stub that provides appropriate definitions in order to allow you to analyse your code; and
  • ask the library's developer(s) to provide a statement regarding its MISRA C compliance.