Skip to content

Memory usage fixes: nonce type and TLSX extension free#7005

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:memusage_fix_5
Nov 28, 2023
Merged

Memory usage fixes: nonce type and TLSX extension free#7005
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:memusage_fix_5

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

@SparkiDev SparkiDev commented Nov 28, 2023

Description

Nonce ciphers other than AES. Free uses DYNAMIC_TYPE_CIPHER.
AES allocation must use DYNAMIC_TYPE_CIPHER too.

If not all TLSX extensions can be freed, then free the ones that can.
Update TLSX_free() to have a message for each case.

Testing

Memusage testing.
Errors reported and now none.

Checklist

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

@SparkiDev SparkiDev self-assigned this Nov 28, 2023
Nonce ciphers other than AES. Free uses DYNAMIC_TYPE_CIPHER.
AES allocation must use DYNAMIC_TYPE_CIPHER too.

If not all TLSX extensions can be freed, then free the ones that can.
Update TLSX_free() to have a message for each case.
@SparkiDev SparkiDev changed the title TLS13: nonce allocation type mismatched Memory usage fixes: nonce type and TLSX extension free Nov 28, 2023
@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Nov 28, 2023
@JacobBarthelmeh JacobBarthelmeh merged commit 0ac27eb into wolfSSL:master Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants