mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-18 07:09:36 +02:00
kconfig: qconf: fix buffer overflow in debug links
[ Upstream commit984ed20ece
] If you enable "Option -> Show Debug Info" and click a link, the program terminates with the following error: *** buffer overflow detected ***: terminated The buffer overflow is caused by the following line: strcat(data, "$"); The buffer needs one more byte to accommodate the additional character. Fixes:c4f7398bee
("kconfig: qconf: make debug links work again") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
eebc10e924
commit
ce5ec36799
|
@ -1174,7 +1174,7 @@ void ConfigInfoView::clicked(const QUrl &url)
|
||||||
{
|
{
|
||||||
QByteArray str = url.toEncoded();
|
QByteArray str = url.toEncoded();
|
||||||
const std::size_t count = str.size();
|
const std::size_t count = str.size();
|
||||||
char *data = new char[count + 1];
|
char *data = new char[count + 2]; // '$' + '\0'
|
||||||
struct symbol **result;
|
struct symbol **result;
|
||||||
struct menu *m = NULL;
|
struct menu *m = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user