Catch lookup_macro being passed NULL

This commit is contained in:
Jeremiah Orians 2021-11-06 22:49:34 -04:00
parent 876ebe7c68
commit ff65efa99e
No known key found for this signature in database
GPG Key ID: 6B3A3F198708F894
3 changed files with 14 additions and 7 deletions

View File

@ -125,6 +125,13 @@ struct token_list* insert_tokens(struct token_list* point, struct token_list* to
struct macro_list* lookup_macro(struct token_list* token)
{
if(NULL == token)
{
line_error_token(macro_token);
fputs("null token recieved in lookup_macro\n", stderr);
exit(EXIT_FAILURE);
}
struct macro_list* hold = macro_env;
while (NULL != hold)

View File

@ -212,9 +212,9 @@ eb1f6aab09a1a4966f9f49a518d8aa03ca97aa7c46e443871d758a306671a85e test/results/t
a2cbfd5f76d3be8049c6737e3fa02f191caf29b6885db006fa23f86e6eacc186 test/results/test0106-knight-posix-binary
d75e450e2fcdf19df63f9d6a3fe5e032933e57b33f6f06b39a8ed2f3dc759f17 test/results/test0106-riscv64-binary
473cc504d6cba9eaf648abcf15c83a317ff3f4a7f08f5e8936e3b35b2cc4fbc6 test/results/test0106-x86-binary
477b8c9d4a93825224f1a5974a46781c60f2fb5a5c7d1e80a406495261394beb test/results/test1000-aarch64-binary
4333f7916d87482c04691eab6b2ab9777b2d59b9fe4988b021da8776a57c3e8b test/results/test1000-amd64-binary
49008f8515f84b2144df557d3e79a633647012017158fe38ec64886cbfb06d2f test/results/test1000-armv7l-binary
0a68e25f5e77860c6237249b810aaab145a485de22a43c563324f4c6eb44acb2 test/results/test1000-knight-posix-binary
8b19ec018b42fb163b4ae0228e2439cd78efd9d657d70208bbf0d4d2b3655c01 test/results/test1000-riscv64-binary
02da277331c4d6fc9b3365876bb3713bc9a3f417577fd1bac9be2c0d7fa52b82 test/results/test1000-x86-binary
616f562b698c79058a0c09e226425a1f512d45aa046ddc9ac55ae369d5bc36f5 test/results/test1000-aarch64-binary
3e5148fed11d7b594682de9df95d9cccf8f139a3811d27ff3eec950ad8ad2feb test/results/test1000-amd64-binary
a4e076fbf83103e2ebc7b4845f259bc985ec085b5da21bf505ce6d305c639c72 test/results/test1000-armv7l-binary
0adab974e95a042dec050b90f587b18677e5a96360b97f5a9126c3ecd0773ba9 test/results/test1000-knight-posix-binary
bf420ce5489490749f6f0048210c48336e2ff37d580991eba36569ff26638aa8 test/results/test1000-riscv64-binary
27d4dd3ee26f45fdd70ad30dfb5816d7d27c9060e485869e966b959b8587ae41 test/results/test1000-x86-binary

View File

@ -1 +1 @@
2ea3bc29dd584e94a68644dca165722c67466b88b6b3bae3a36e231298c8f020 test/test1000/proof
4ec7d9bdd81261c9262d257cb6967499bfab1933f71623e74ae134f34d69f908 test/test1000/proof