scripts/kallsyms: fix memory corruption caused by write over-run
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 10 Feb 2020 16:18:52 +0000 (01:18 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 10 Feb 2020 20:18:09 +0000 (05:18 +0900)
commit9d1b38958b077f6c8d4bd196a115b643d7bd6717
tree917975e0a1e04dfb5e3ee4c4dacd33404f090889
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
scripts/kallsyms: fix memory corruption caused by write over-run

memcpy() writes one more byte than allocated.

Fixes: 8d60526999aa ("scripts/kallsyms: change table to store (strcut sym_entry *)")
Reported-by: youling257 <youling257@gmail.com>
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Pavel Machek <pavel@ucw.cz>
scripts/kallsyms.c