diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-04-09 15:22:11 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-04-09 15:22:11 +0300 |
commit | 44377c6a5ca96ec6334619d49d6a4f486c5a8d21 (patch) | |
tree | 2e59613f829fed04c0b427ea248eb92c55af5fd3 /src/xmpp/message.c | |
parent | 401ebce84e87ab35746f488e58bba25dfe5b4c2f (diff) | |
download | profani-tty-44377c6a5ca96ec6334619d49d6a4f486c5a8d21.tar.gz |
Fix use-after-free in stanza_create_caps_from_query_element()
The function creates a form to find such strings as software, os, etc. It remembers the strings allocated by form_create() and use them below in caps_create(). The issue is that the form is destroyed before and as result the strings are freed too. As solution, allocate own copy of strings.
Diffstat (limited to 'src/xmpp/message.c')
0 files changed, 0 insertions, 0 deletions