Skip to content

Errors: [stepping beyond the scope of the array] #5

@MykhailoGreen

Description

@MykhailoGreen

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'; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions