ENV33-C defines an exception to call system() using a null pointer to check presence of command processor. The current implementation in cert.py does a strict check and reports system(NULL) and system(0) as violation.
CERT-C states that exceptions are informative only and are not required to be followed.
Is it intended to check rules this strict way and ignore exceptions ?
If exceptions should be treated as compliant this might be done by adding two simpleMatch checks
ENV33-C defines an exception to call
system()using a null pointer to check presence of command processor. The current implementation incert.pydoes a strict check and reportssystem(NULL)andsystem(0)as violation.CERT-C states that exceptions are informative only and are not required to be followed.
Is it intended to check rules this strict way and ignore exceptions ?
If exceptions should be treated as compliant this might be done by adding two
simpleMatchchecksThanks, really, there's a footnote in the standard:
I added this in this PR.