OpenCyphal / libcanard

A compact implementation of the Cyphal/CAN protocol in C for high-integrity real-time embedded systems
http://opencyphal.org
MIT License
327 stars 192 forks source link

misra: remove flexible array #192

Closed coderkalyan closed 2 years ago

coderkalyan commented 2 years ago

Closes #183

coderkalyan commented 2 years ago

As per MISRA, flexible array members should be replaced with maximum-size allocation and the following pointer arithmetic to avoid undefined behavior.