about summary refs log tree commit diff stats
path: root/tests/unittests/test_muc.h
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2020-04-09 15:22:11 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2020-04-09 15:22:11 +0300
commit44377c6a5ca96ec6334619d49d6a4f486c5a8d21 (patch)
tree2e59613f829fed04c0b427ea248eb92c55af5fd3 /tests/unittests/test_muc.h
parent401ebce84e87ab35746f488e58bba25dfe5b4c2f (diff)
downloadprofani-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 'tests/unittests/test_muc.h')
0 files changed, 0 insertions, 0 deletions