Closed zePanzerfaust closed 4 years ago
In UAVDataLink.h, decodeBuffer is an uninitialized pointer which is passed to UAVDataLink_decodeCOBS, which uses this pointer like an array.
uint8_t UAVDataLink_unpack(uint8_t *receivedPacket, uint8_t receivedPacketLength, uint8_t *packetHeader, uint8_t *payload) { /* Decode COBS framing */ uint8_t *decodeBuffer; UAVDataLink_decodeCOBS(receivedPacket, receivedPacketLength, decodeBuffer); ... }
Thanks for spotting that! Should be fixed now.
In UAVDataLink.h, decodeBuffer is an uninitialized pointer which is passed to UAVDataLink_decodeCOBS, which uses this pointer like an array.