wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Add null check to wolfSSL_Free

Open embhorn opened this issue 1 year ago • 1 comments
trafficstars

Description

If wolfSSL_Free() determines that the ‘heap’ argument is not NULL, it goes on to the ‘else’ statement of memory.c, where it executes the following: 'wc_LockMutex(&(mem->memory_mutex)’ without checking whether ‘mem’ (AKA hint->memory) is NULL.

Fixes zd17779

Testing

Customer confirmed

Checklist

  • [ ] added tests
  • [ ] updated/added doxygen
  • [ ] updated appropriate READMEs
  • [ ] Updated manual and documentation

embhorn avatar Apr 03 '24 20:04 embhorn

Retest this please

embhorn avatar Apr 03 '24 21:04 embhorn

@embhorn please resolve new conflicts. @JacobBarthelmeh please merge when you are happy with PR.

dgarske avatar May 15 '24 17:05 dgarske

retest this please

embhorn avatar May 15 '24 19:05 embhorn