Skip to content

Test writes outside array bounds #5

@MartinCowen

Description

@MartinCowen

In cobs_test.c, line 124

expected_buffer[257] = 0xAB;

expected_buffer[257] = 0xAB;

in test_255_bytes_null_end. The buffer is declared with 257 elements, so has indexes 0 to 256:

uint8_t expected_buffer[257];

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