/
cs2bug.wrap.res
117 lines (117 loc) · 3.7 KB
/
cs2bug.wrap.res
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
# **********************************************************
# Copyright (c) 2011-2017 Google, Inc. All rights reserved.
# Copyright (c) 2009-2010 VMware, Inc. All rights reserved.
# **********************************************************
#
# Dr. Memory: the memory debugger
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 2.1 of the License, and no later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
: UNINITIALIZED READ
cs2bug.cpp:87
: UNADDRESSABLE ACCESS beyond heap bounds: reading 4 byte(s)
cs2bug.cpp:95
: INVALID HEAP ARGUMENT: allocated with operator new[], freed with operator delete
cs2bug.cpp:97
memory was allocated here:
cs2bug.cpp:91
: UNADDRESSABLE ACCESS beyond heap bounds: writing 1 byte(s)
cs2bug.cpp:105
%ANYLINE
# Linux wrap will say "1", else "2"
refers to 0 byte(s) beyond last valid byte in prior malloc
refers to 1 byte(s) beyond last valid byte in prior malloc
%ENDANYLINE
: UNADDRESSABLE ACCESS beyond heap bounds: writing 1 byte(s)
cs2bug.cpp:109
refers to 0 byte(s) beyond last valid byte in prior malloc
##################################################
# test_mismatch_dtr()
: INVALID HEAP ARGUMENT: allocated with operator new[], freed with operator delete
cs2bug.cpp:197
memory was allocated here:
cs2bug.cpp:195
%OPTIONAL # Linux
: INVALID HEAP ARGUMENT to free
%ENDOPTIONAL
: INVALID HEAP ARGUMENT: allocated with operator new[], freed with free
cs2bug.cpp:200
memory was allocated here:
cs2bug.cpp:198
%OPTIONAL # only when wrapping
: UNINITIALIZED READ
cs2bug.cpp:116
cs2bug.cpp:203
%ENDOPTIONAL
: INVALID HEAP ARGUMENT: allocated with malloc, freed with operator delete
cs2bug.cpp:203
memory was allocated here:
cs2bug.cpp:201
%OPTIONAL # VS2008 Win7
: UNINITIALIZED READ
cs2bug.cpp:203
%ENDOPTIONAL
: UNADDRESSABLE ACCESS
cs2bug.cpp:206
%OPTIONAL
# MinGW xp64 crashes rather than reporting final mismatch
: UNADDRESSABLE ACCESS
cs2bug.cpp:206
%ENDOPTIONAL
%OPTIONAL
: INVALID HEAP ARGUMENT: allocated with malloc, freed with operator delete[]
cs2bug.cpp:206
memory was allocated here:
cs2bug.cpp:204
%ENDOPTIONAL
%OPTIONAL # Linux
: INVALID HEAP ARGUMENT to free
%ENDOPTIONAL
##################################################
# test_mismatch_int()
: INVALID HEAP ARGUMENT: allocated with operator new[], freed with operator delete
cs2bug.cpp:218
memory was allocated here:
cs2bug.cpp:216
: INVALID HEAP ARGUMENT: allocated with operator new[], freed with free
cs2bug.cpp:221
memory was allocated here:
cs2bug.cpp:219
: INVALID HEAP ARGUMENT: allocated with malloc, freed with operator delete
cs2bug.cpp:224
memory was allocated here:
cs2bug.cpp:222
: INVALID HEAP ARGUMENT: allocated with malloc, freed with operator delete[]
cs2bug.cpp:227
memory was allocated here:
cs2bug.cpp:225
##################################################
# leaks
%OUT_OF_ORDER
: LEAK 4 direct bytes + 0 indirect bytes
cs2bug.cpp:86
%if UNIX
# FIXME PR 587093: string code disabled for now on Windows
: LEAK 4 direct bytes + 19 indirect bytes
cs2bug.cpp:172
%endif
%OPTIONAL # Linux/VS2005
: LEAK 88 direct bytes + 168 indirect bytes
cs2bug.cpp:195
%ENDOPTIONAL
: LEAK 88 direct bytes + 196 indirect bytes
cs2bug.cpp:198
: LEAK 42 direct bytes + 0 indirect bytes
cs2bug.cpp:204