Mercurial > pub > dyncall > dyncall
comparison test/suite_aggrs/main.c @ 460:0ae555528709
added missing nullptr check to access bounds guard
author | Tassilo Philipp |
---|---|
date | Sun, 30 Jan 2022 17:12:47 +0100 |
parents | 1c18c2377c24 |
children | 236015fdf7a8 |
comparison
equal
deleted
inserted
replaced
459:8b6a39592f86 | 460:0ae555528709 |
---|---|
128 if(adj_ll) | 128 if(adj_ll) |
129 *adj_ll = 0x0123456789abcdef; | 129 *adj_ll = 0x0123456789abcdef; |
130 | 130 |
131 s = ((int(*)(const void*,const void*))rtype_st_cmp)(dcCallStruct(p, t, rtype_st, V_a[0]), K_a[pos]); | 131 s = ((int(*)(const void*,const void*))rtype_st_cmp)(dcCallStruct(p, t, rtype_st, V_a[0]), K_a[pos]); |
132 | 132 |
133 if(*adj_ll != 0x0123456789abcdef) { | 133 if(adj_ll && *adj_ll != 0x0123456789abcdef) { |
134 printf("writing rval overflowed into adjacent memory;"); | 134 printf("writing rval overflowed into adjacent memory;"); |
135 return 0; | 135 return 0; |
136 } | 136 } |
137 break; | 137 break; |
138 } | 138 } |