about summary refs log tree commit diff stats
path: root/tests/unittests/test_common.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/test_common.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/test_common.c')
0 files changed, 0 insertions, 0 deletions
c8cd95c1152'>^
e6056999 ^
a654e4ec ^
dbe12410 ^
4690ce81 ^
a654e4ec ^



672e3e50 ^

a654e4ec ^





672e3e50 ^

a654e4ec ^
672e3e50 ^



76755b28 ^









672e3e50 ^

a654e4ec ^
76755b28 ^

672e3e50 ^

4690ce81 ^
672e3e50 ^



76755b28 ^

db1f56c8 ^




76755b28 ^

db1f56c8 ^


672e3e50 ^
4690ce81 ^
76755b28 ^
a654e4ec ^

76755b28 ^
4690ce81 ^
672e3e50 ^
4690ce81 ^

76755b28 ^
d5d908dd ^
672e3e50 ^


db1f56c8 ^
672e3e50 ^
32b8fac2 ^
672e3e50 ^

2f02189d ^











4690ce81 ^
76755b28 ^
4690ce81 ^
672e3e50 ^
4690ce81 ^
a654e4ec ^
65361948 ^
a654e4ec ^
65361948 ^
672e3e50 ^
a654e4ec ^
65361948 ^
672e3e50 ^




4690ce81 ^

d5d908dd ^
4690ce81 ^
c5ffb6e1 ^
672e3e50 ^
4690ce81 ^





672e3e50 ^


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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135