# There is a bug in libcanard dsdl, Please check

**URL:** <https://forum.opencyphal.org/t/there-is-a-bug-in-libcanard-dsdl-please-check/205>\
**Category:** Libcanard\
**Created:** [October 20, 2018, 3:01pm UTC](https://forum.opencyphal.org/t/there-is-a-bug-in-libcanard-dsdl-please-check/205 "2018-10-20T15:01:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cherish-Gww](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/cherish-gww/32/1129_2.png) [@Cherish-Gww](https://forum.opencyphal.org/u/Cherish-Gww)\
**Post date:** [October 20, 2018, 3:01pm UTC](https://forum.opencyphal.org/t/there-is-a-bug-in-libcanard-dsdl-please-check/205/1 "2018-10-20T15:01:51Z")

</div>

Just now I update libcanard, and generate DSDL  
here is the bug.

uavcan/equipment/actuator/actuator\_ArrayCommand.c: In function ‘uavcan\_equipment\_actuator\_ArrayCommand\_encode\_internal’:

uavcan/equipment/actuator/actuator\_ArrayCommand.c:41:93: error: subscripted value is neither array nor pointer nor vector  
offset += uavcan\_equipment\_actuator\_Command\_encode\_internal((void\*)&source-\>commands[c], msg\_buf, offset, 0);

commands[c] is wrong ,that is commands.data[c] is right.

Please fix it. thank you  
and I found many place have this error

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [October 20, 2018, 3:15pm UTC](https://forum.opencyphal.org/t/there-is-a-bug-in-libcanard-dsdl-please-check/205/2 "2018-10-20T15:15:33Z")

</div>

Thanks, reported: [https://github.com/UAVCAN/libcanard/issues/64](https://github.com/UAVCAN/libcanard/issues/64)

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [October 20, 2018, 5:59pm UTC](https://forum.opencyphal.org/t/there-is-a-bug-in-libcanard-dsdl-please-check/205/3 "2018-10-20T17:59:06Z")

</div>

fixed in upstream

---

<div class="post-metadata">

**Author:** ![Cherish-Gww](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/cherish-gww/32/1129_2.png) [@Cherish-Gww](https://forum.opencyphal.org/u/Cherish-Gww)\
**Post date:** [October 21, 2018, 4:34am UTC](https://forum.opencyphal.org/t/there-is-a-bug-in-libcanard-dsdl-please-check/205/4 "2018-10-21T04:34:07Z")

</div>

Thank for your team, so fast.
