]> git.dujemihanovic.xyz Git - u-boot.git/commit
IOMUX: Fix buffer overflow in iomux_replace_device()
authorYuichiro Goto <goto@k-tech.co.jp>
Sun, 25 Apr 2021 23:08:03 +0000 (08:08 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 27 Apr 2021 12:05:30 +0000 (08:05 -0400)
commit77ed7a2ac975e4b72a1bd87e5c475c08c23bb06a
tree08192122d198d09e0ec0e5b43f475609afc2d507
parent230bc623a49a214bdf1a53971404ab762414ec71
IOMUX: Fix buffer overflow in iomux_replace_device()

Use of strcat() against an uninitialized buffer would lead
to buffer overflow. This patch fixes it.

Fixes: 694cd5618c ("IOMUX: Introduce iomux_replace_device()")
Signed-off-by: Yuichiro Goto <goto@k-tech.co.jp>
Cc: Peter Robinson <pbrobinson@gmail.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
common/iomux.c