coreboot-kgpe-d16/util/romcc/tests
Jacob Garber ae8301fddb util/romcc: Fix parsing of empty string literal
The corner case of an empty string literal was causing romcc to
segfault. This checks if the literal is empty, and if so allocates a
size one buffer for the terminating null character. A test case for
this is added to ensure it doesn't happen again.

Found-by: Coverity CID 1129099
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: I067160a3b9998184f44e4878ef6269f372fe68bb
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32852
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2019-05-21 09:28:36 +00:00
..
include
fail_test1.c
fail_test2.c
fail_test3.c
fail_test4.c
fail_test5.c
fail_test6.c
fail_test7.c
fail_test8.c
fail_test9.c
fail_test10.c
fail_test11.c
hello_world.c
hello_world1.c
hello_world2.c
ldscript.ld
linux_console.h
linux_syscall.h
linux_test1.c
linux_test2.c util/romcc: Fix typos 2018-08-28 14:22:24 +00:00
linux_test3.c
linux_test4.c
linux_test5.c util: Fix typo on plural form of index 2019-05-20 14:45:35 +00:00
linux_test6.c
linux_test7.c
linux_test8.c
linux_test9.c
linux_test10.c
linux_test11.c
linux_test12.c
linux_test13.c
linuxi386_syscall.h
raminit_test.c util/romcc: Fix typos 2018-08-28 14:22:24 +00:00
raminit_test1.c util/romcc: Fix typos 2018-08-28 14:22:24 +00:00
raminit_test2.c util/romcc: Fix typos 2018-08-28 14:22:24 +00:00
raminit_test3.c
raminit_test4.c
raminit_test5.c
raminit_test6.c util: Fix typo on plural form of index 2019-05-20 14:45:35 +00:00
raminit_test7.c util: Fix typo on plural form of index 2019-05-20 14:45:35 +00:00
simple_test.c
simple_test1.c
simple_test2.c
simple_test3.c
simple_test4.c
simple_test5.c
simple_test6.c
simple_test7.c
simple_test8.c
simple_test9.c
simple_test10.c
simple_test11.c
simple_test12.c
simple_test13.c
simple_test14.c
simple_test15.c
simple_test16.c
simple_test17.c
simple_test18.c
simple_test19.c
simple_test20.c
simple_test21.c
simple_test22.c
simple_test23.c
simple_test24.c
simple_test25.c
simple_test26.c
simple_test27.c
simple_test28.c
simple_test29.c
simple_test30.c util/romcc: Fix typos 2018-08-28 14:22:24 +00:00
simple_test31.c
simple_test32.c
simple_test33.c
simple_test34.c
simple_test35.c
simple_test36.c
simple_test37.c
simple_test38.c
simple_test39.c
simple_test40.c
simple_test41.c
simple_test43.c
simple_test45.c
simple_test46.c util: Fix typo on plural form of index 2019-05-20 14:45:35 +00:00
simple_test47.c
simple_test48.c
simple_test49.c
simple_test50.c
simple_test51.c
simple_test52.c
simple_test53.c
simple_test54.c util: Fix typo on plural form of index 2019-05-20 14:45:35 +00:00
simple_test55.c
simple_test56.c
simple_test57.c
simple_test58.c
simple_test59.c
simple_test60.c
simple_test61.c
simple_test62.c
simple_test63.c
simple_test64.c
simple_test65.c
simple_test66.c
simple_test67.c
simple_test68.c
simple_test69.c
simple_test70.c
simple_test71.c
simple_test72.c
simple_test73.c
simple_test74.c
simple_test75.c
simple_test76.c
simple_test77.c
simple_test78.c
simple_test79.c
simple_test80.c
simple_test81.c
simple_test82.c
simple_test83.c
simple_test84.c
simple_test85.c
simple_test86.c
simple_test87.c util/romcc: Fix parsing of empty string literal 2019-05-21 09:28:36 +00:00