Lines Matching +full:lookup +full:- +full:table
25 * so we can allocate a flat table to compare to
97 f->flags &= ~FZ_FLAG_ALLOCATED; in fuzz_free_cb()
108 return -1; in FuzzerInitialize()
112 return -1; in FuzzerInitialize()
134 * for the lookup key, and 8 bytes of value in FuzzerTestOneInput()
138 return -1; in FuzzerTestOneInput()
165 /* lock the table */ in FuzzerTestOneInput()
175 if (valptr->flags & FZ_FLAG_ALLOCATED) { in FuzzerTestOneInput()
180 memcpy(&valptr->value, &buf[3], sizeof(uint64_t)); in FuzzerTestOneInput()
191 if (rc == -1) in FuzzerTestOneInput()
192 /* failed to grow the hash table due to too many collisions */ in FuzzerTestOneInput()
198 valptr->flags |= FZ_FLAG_ALLOCATED; in FuzzerTestOneInput()
201 * unlock the table in FuzzerTestOneInput()
226 /* lock the table */ in FuzzerTestOneInput()
235 if (!(valptr->flags & FZ_FLAG_ALLOCATED)) in FuzzerTestOneInput()
244 * unlock the table in FuzzerTestOneInput()
254 * once the unlock is done, the table rcu will have synced in FuzzerTestOneInput()
258 OPENSSL_assert(!(valptr->flags & FZ_FLAG_ALLOCATED)); in FuzzerTestOneInput()
278 /* lock the table for reading */ in FuzzerTestOneInput()
283 * then we expect a miss in the lookup in FuzzerTestOneInput()
287 if (!(valptr->flags & FZ_FLAG_ALLOCATED)) in FuzzerTestOneInput()
291 * do the lookup in FuzzerTestOneInput()
296 * unlock the table in FuzzerTestOneInput()
306 * if we expect a positive lookup, make sure that in FuzzerTestOneInput()
313 OPENSSL_assert(v->value == lval); in FuzzerTestOneInput()
317 * successful lookup if we didn't expect a miss in FuzzerTestOneInput()
326 * only flush the table rarely in FuzzerTestOneInput()
335 * lock the table in FuzzerTestOneInput()
356 if (valptr->flags & FZ_FLAG_ALLOCATED) in FuzzerTestOneInput()
370 if (valptr->flags & FZ_FLAG_ALLOCATED) in FuzzerTestOneInput()
375 OPENSSL_assert(htvlist->list_len == (size_t)rc_prediction); in FuzzerTestOneInput()
382 return -1; in FuzzerTestOneInput()