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 - Commit more tests for romcc 2003-07-12 01:40:54 +00:00
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 romcc: Increase base address in linux ld script 2016-04-13 17:36:39 +02:00
linux_console.h
linux_syscall.h
linux_test1.c romcc: Use UNIX line endings in linux tests 2016-04-13 17:37:03 +02:00
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 romcc: Use UNIX line endings in linux tests 2016-04-13 17:37:03 +02:00
linux_test7.c
linux_test8.c romcc: Use UNIX line endings in linux tests 2016-04-13 17:37:03 +02:00
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 smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
simple_test5.c smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
simple_test6.c smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
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 Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
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 smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
simple_test62.c
simple_test63.c
simple_test64.c - O2, enums, and switch statements work in romcc 2003-10-11 06:20:25 +00:00
simple_test65.c
simple_test66.c
simple_test67.c
simple_test68.c
simple_test69.c - Update romcc to version 0.37 2003-10-22 04:03:46 +00:00
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