MISRA Discussion Forums
Typo in rule 22.9 - 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:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21)
+---- Forum: 8.22 Resources (https://forum.misra.org.uk/forumdisplay.php?fid=177)
+---- Thread: Typo in rule 22.9 (/showthread.php?tid=1484)



Typo in rule 22.9 - gwd - 28-03-2019

I recently downloaded MISRA C:2012, third edition, first revision, February 2019. The text for Rule 22.9 on page 190 says, "The value of errno shall be set to zero after calling an errno-setting-function" (emphasis mine). But the amplification, rationale, and exception all seem to deal with the testing of errno, not the setting of errno. The rule in Appendix A (on page 203) says, "..shall be tested against zero...", as does the version of the rule in the 2016 addendum. Seems like the text on page 190 probably needs to be fixed.


Re: Typo in rule 22.9 - misra-c - 04-04-2019

Thank you for drawing this to our attention. A typesetting error went unnoticed in the final proof-reading.
The headline for 22.9 should read:
Quote: The value of errno shall be tested against zero after calling an errno-setting-function.
The correct headline appears in Appendix A and in the original "MISRA C:2012 Amendment 1, Additional security guidelines for MISRA C:2012" document.

The PDF version of MISRA C:2012, third edition, first revision is correct as of 4 April 2019. If you downloaded a copy prior to that date, please contact us via email (not via the messaging service on this forum) for a replacement.

We apologise for the inconvenience that this has caused.