Skip to content
Snippets Groups Projects
Commit 6059f127 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

libdnssec/key: bad logic leaves key with dangling pointer

when setting key from rdata, a copy of binary data struct is made.
that struct is then resized to accomodate for new key.
if successful, binary data points to freed memory
when pubkey parsing fails, the resized copy is discarded
and key binary data left with dangling pointer
freeing key causes double-free and using it use-after-free
parent c1353efc
No related branches found
No related tags found
1 merge request!462libdnssec/key: bad logic leaves key with dangling pointer
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment