libhl icon indicating copy to clipboard operation
libhl copied to clipboard

Simple and fast C library implementing a thread-safe API to manage hash-tables, linked lists, lock-free ring buffers and queues

Results 3 libhl issues
Sort by recently updated
recently updated
newest added

The number of successfully read from rqueue sometimes less than the number of successfully write to rqueue. Here is the test code. https://gist.github.com/mingpepe/9d6ec5f17bdb60094d7fc980df3437ce But i am not found the bug...

ht_create(65536, 65536, NULL); TEST_1 remove all item: add 100000 item to hashtable, before ht_foreach_value, ht_count() is 100000 then ht_foreach_value. in callback function return HT_ITERATOR_REMOVE, record entry callback function count is...

The original code [`int rc = ht_delete(graph->nodes, node->label, strlen(node->label), (void **)&node, NULL);` ](https://github.com/xant/libhl/blob/master/src/graph.c#L91) dereferences the NULL pointer, this results in a segment fault.