Fix ccm_memory() cleaning user-supplied key #327
No reviewers
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt!327
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ccm_segfault"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This fixes a segfault caused by
ccm_memory()withLTC_CLEAN_STACKenabled.There is already
if (skey != uskey)couple of lines above (line 334).Should not it be better to move
zeromem(skey, sizeof(*skey))there?so you mean like this?
would be fine for me
Yes, that's it.
👍