Skip to content

Commit

Permalink
refactor: Make tox mutex non-recursive.
Browse files Browse the repository at this point in the history
Instead, unlock it before entering client callback code.
  • Loading branch information
iphydf committed Feb 8, 2024
1 parent aacff73 commit 5c93231
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 5 deletions.
2 changes: 1 addition & 1 deletion toxcore/crypto_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static void crypto_free(uint8_t *ptr, size_t bytes)
void crypto_memzero(void *data, size_t length)
{
#if defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
memzero(data, length);
memzero((uint8_t *)data, length);
#else
sodium_memzero(data, length);
#endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
Expand Down
Loading

0 comments on commit 5c93231

Please sign in to comment.