Hi, developers, thank you for your checking. It seems the lock h->cache_mutex is not released correctly when newBlocks == NULL in the function chm_set_param?
|
CHM_ACQUIRE_LOCK(h->cache_mutex); |
|
if (paramVal != h->cache_num_blocks) |
|
{ |
|
UChar **newBlocks; |
|
UInt64 *newIndices; |
|
int i; |
|
|
|
/* allocate new cached blocks */ |
|
newBlocks = (UChar **)malloc(paramVal * sizeof (UChar *)); |
|
if (newBlocks == NULL) return; |
Hi, developers, thank you for your checking. It seems the lock
h->cache_mutexis not released correctly whennewBlocks == NULLin the functionchm_set_param?CHMLib/src/chm_lib.c
Lines 1026 to 1035 in 2bef8d0