rtlabs-com / c-open

CANopen stack for embedded devices
http://www.rt-labs.com
Other
79 stars 40 forks source link

Fix index-out-of-bounds read when validating PDO mapping #24

Closed nattgris closed 4 years ago

nattgris commented 4 years ago

The number_of_mappings argument to the validation function comes straight from the 8-bit payload when writing to subindex 0 of the PDO mapping objects and will, during the summing of the bitlengths, read outside the mappings array if the payload is greater than MAX_PDO_ENTRIES.

hefloryd commented 4 years ago

Merged, thanks