Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A27-0-1 Unclear scope of the rule
#2
Firstly, the rule isn't only concerned with string functions

Your project has to decide what an independent component is, with regard to where it is getting its information from. We believe that the spirit of the rule is to validate any input that you do not have guarantees on it or which comes from an untrustworthy source.

The interpretation of 'validate' depends on the expectations you have for the data being input. Should it be in a particular range of values or in a particular format? What happens when those expectations aren't met?
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
A27-0-1 Unclear scope of the rule - by cgpzs - 20-08-2024, 10:36 AM
RE: A27-0-1 Unclear scope of the rule - by misra cpp - 06-09-2024, 05:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)