Error :
CborDecoder.cpp -> void CborReader::Run() ->
->line 344 (you do not put a endline character): size(buff) = size(str)+1 // '\0' !!!
->line 347 (at the end of the array is garbage)
->line 350 (stepping beyond the scope of the array)
CborDecoder.cpp -> void CborReader::GetCborData() ->
-> line 773 (Also)
-> line 776 (Also)
-> line 778 (Also)
Correction:
Write like this:
unsigned char data[currentLength+1];
input->getBytes(data, currentLength);
state = STATE_TYPE;
data[currentLength] = '\0';