Skip to content
Commit b6f51c70 authored by Keith Packard's avatar Keith Packard Committed by Marti Bolivar
Browse files

tests/spi_loopback: Fix buffer sizes to avoid buffer overflow



The initialized test buffers tx_data and tx2_data were not given a
specific size, but were initialized with one more byte than the
uninitialized buffers they get copied to. As a result, the memcpy found
a buffer overflow. Fix this by setting the source buffer sizes to match
the destination.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent b7313f85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment