summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_a38x.c
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-07-23 11:34:35 +0100
committerTom Rini <trini@konsulko.com>2025-07-29 13:14:46 -0600
commit4b8aba93bdba168f284036cd7f8cb0e988bf3f92 (patch)
treea1d2bcd09be92cf4c36a061c6a0a39519c800d2d /drivers/ddr/marvell/a38x/ddr3_a38x.c
parentbd0ade7d090a334b3986936d63a34001d99722ad (diff)
bios_emulator: Fix buffer overflow
Using strcpy to copy a 4 character string into a 4 byte field in a structure will overflow that field as it writes the terminating \0 into the following field. Correct this by using memcpy instead. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_a38x.c')
0 files changed, 0 insertions, 0 deletions