about summary refs log tree commit diff stats
path: root/tests/unittests/unittests.c
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/unittests.c
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/unittests.c')
0 files changed, 0 insertions, 0 deletions
ram <vc@akkartik.com> 2016-03-27 17:43:41 -0700 2812' href='/akkartik/mu/commit/html/example1.mu.html?h=hlt&id=a654e4ecace2d506d1b10f1dde2c287ebe84ef37'>a654e4ec ^
4690ce81 ^
a654e4ec ^

c603cd6c ^

a654e4ec ^





c603cd6c ^

a654e4ec ^
4690ce81 ^
dcc060c7 ^
c603cd6c ^





a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38