In cobs_test.c, line 124 https://github.com/jacquesf/COBS-Consistent-Overhead-Byte-Stuffing/blob/c4876cc8c5655bd57ffe82db56e3a7bfcf5cf834/cobs_test.c#L124 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];