MISRA Discussion Forums

Full Version: MISRA C:2012 Examples Suite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This suite of files is intended to illustrate issues addressed by the MISRA C rules as expressed in:
  • MISRA C:2012 Guidelines for the use of the C language in critical systems, ISBN 978-1-906400-10-1 paperback and ISBN 978-1-906400-11-8 PDF.
  • MISRA C:2012 Amendment 1Additional security guidelines for MISRA C:2012, ISBN 978-1-906400-16-3 PDF.
The examples are mainly taken from the example sections in the MISRA C:2012 guidelines. It is not intended to be an exhaustive test suite and should not be used as such.

Use of this Examples Suite is subject to the conditions in the enclose READ_ME file. In particular please note that a free license of these code examples is offered only for individual use. Redistribution of the code examples in any form is not permitted. If you wish to use the Examples Suite in this way, including distribution with a tool, please contact MISRA for licensing terms.

This suite will be updated from time to time. You can check you have the latest version by visiting this area of the MISRA Forum. There is an MD5 checksum provided in the file description that can be used to check that a copy of the archive is a genuine copy.  The date and version number of the latest release will always be listed at the end of this post.

Version history

Version number 2.0
Date: 11 November 2016
Reason: Addition of examples to clarify guidelines and examples for new AMD1 rules

Version number: 1.0
Date: 13 January 2014
Reason: Initial release


Latest release
Version number 2.0
Date: 11 November 2016
MD5 checksum: E00B8C1A782F82C08C4DECFB7DD64605