Mercurial > pub > dyncall > dyncall
changeset 460:0ae555528709
added missing nullptr check to access bounds guard
author | Tassilo Philipp |
---|---|
date | Sun, 30 Jan 2022 17:12:47 +0100 |
parents | 8b6a39592f86 |
children | 236015fdf7a8 |
files | test/suite_aggrs/main.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/suite_aggrs/main.c Sat Jan 29 12:25:44 2022 +0100 +++ b/test/suite_aggrs/main.c Sun Jan 30 17:12:47 2022 +0100 @@ -130,7 +130,7 @@ s = ((int(*)(const void*,const void*))rtype_st_cmp)(dcCallStruct(p, t, rtype_st, V_a[0]), K_a[pos]); - if(*adj_ll != 0x0123456789abcdef) { + if(adj_ll && *adj_ll != 0x0123456789abcdef) { printf("writing rval overflowed into adjacent memory;"); return 0; }