You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixing deserialization logic error in C
closes#221
Bump version number for release.
* Update src/nunavut/lang/c/templates/deserialization.j2
Co-authored-by: Pavel Kirienko <pavel.kirienko@gmail.com>
* fixing build and adding zero extension test
Co-authored-by: Pavel Kirienko <pavel.kirienko@gmail.com>
Here:
https://github.com/UAVCAN/nunavut/blob/a90eac2749c1466bdff71a5bf19085e0c2de2299/src/nunavut/lang/c/templates/deserialization.j2#L14
If
*inout_buffer_size_bytes == 0
,buffer
may be NULL because there is no data to deserialize, which is not an error.The check should be updated like:
This is a problem because libcanard intentionally emits null payload pointers for zero-sized payloads (as documented).
The text was updated successfully, but these errors were encountered: