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
check.sh
conf.c
confdata.c
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
images.c
kxgettext.c
list.h
lkc.h
lkc_proto.h
mconf.c
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
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