MISRA Compliance
August 30, 2022 ยท View on GitHub
The coreSNTP library files conform to the MISRA C:2012 guidelines, with some noted exceptions. Compliance is checked with Coverity static analysis. The specific deviations, suppressed inline, are listed below.
Additionally, MISRA configuration file contains the project wide deviations.
Suppressed with Coverity Comments
To find the violation references in the source files run grep on the source code with ( Assuming rule 11.5 violation; with justification in point 1 ):
grep 'MISRA Ref 11.5.1' . -rI
Rule 11.5
Ref 11.5.1
- MISRA C-2012 Rule 11.5 Allow casts from
void *. The library casts the byte array information received network to aSntpPacket_t *for parsing SNTP packet.