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
conf.c util/kconfig/conf.c: Fix newline in error printf 2016-12-09 00:35:51 +01:00
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
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
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 Remove non-ascii & unprintable characters 2016-08-01 21:44:45 +02:00
symbol.c util/kconfig: Remove utsname for mingw 2015-11-26 23:59:50 +01:00
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