coreboot-kgpe-d16/util/kconfig
Jacob Garber 554e55b0f0 util/kconfig: Use snprintf to avoid buffer overflow
'name' and 'env' are supposed to be file system paths,
but could overflow the buffer if configured incorrectly.
Let's avoid that entirely.

Found-by: Coverity Scan #1362515
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: I1aef36819d49ebcbde1c51995dc0961c85e74150
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32686
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2019-05-13 09:14:42 +00:00
..
lxdialog {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
Makefile util/kconfig: Fix missing library issue with ld 2.24 and newer 2019-04-03 05:29:16 +00:00
POTFILES.in kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
check.sh libpayload: Drop duplicate copy of Kconfig 2015-06-30 18:55:32 +02:00
conf.c
confdata.c Kconfig: Change symbol override from warning to notice 2016-12-12 17:53:32 +01:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
expr.c
expr.h
gconf.c
gconf.glade kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
images.c Kconfig! 2009-08-12 15:00:51 +00:00
kxgettext.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
list.h
lkc.h
lkc_proto.h
mconf.c kconfig: kconfig_warnings needs to be defined for all frontends 2015-09-30 10:48:21 +00:00
menu.c
miniconfig treewide: use /usr/bin/env where appropriate 2018-11-17 07:32:03 +00:00
nconf.c {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
nconf.gui.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
nconf.h
qconf.cc util/kconfig:xconf(QT): Update QT version of xconf 2016-02-03 03:46:18 +01:00
qconf.h {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
regex.c {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
regex.h
symbol.c
toada.c util/kconfig: Add `toada` Ada spec generation tool 2019-01-24 13:47:08 +00:00
util.c
zconf.gperf
zconf.hash.c_shipped
zconf.l util/kconfig: Use snprintf to avoid buffer overflow 2019-05-13 09:14:42 +00:00
zconf.lex.c_shipped util/kconfig: Use snprintf to avoid buffer overflow 2019-05-13 09:14:42 +00:00
zconf.tab.c_shipped
zconf.y