fastboot: Fix possible buffer overrun
authorSean Anderson <seanga2@gmail.com>
Thu, 11 Mar 2021 05:15:44 +0000 (00:15 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 21:44:55 +0000 (17:44 -0400)
commit69a752983171c2983fc1f29c7cfa1844f41e5d8b
treead9e9b49513373d27ced4b86bb4637550acbbffc
parentc4ac52f55d90bd46ade9db6f761638fdfdf26e16
fastboot: Fix possible buffer overrun

This fixes several uses of strn(cpy|cat) which did not terminate their
destinations properly.

Fixes de1728ce4c ("fastboot: Allow u-boot-style partitions")

Reported-by: Coverity Scan
Signed-off-by: Sean Anderson <seanga2@gmail.com>
drivers/fastboot/fb_mmc.c