File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,12 @@ valgrind:
99
99
--log-file =/tmp/valgrind-output \
100
100
python3 -m pytest --no-memcheck -vv --valgrind --valgrind-log=/tmp/valgrind-output
101
101
102
+ .PHONY : valgrind-leak
103
+ valgrind-leak :
104
+ PYTHONMALLOC=malloc valgrind --suppressions=Tests/oss-fuzz/python.supp --leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite \
105
+ --log-file =/tmp/valgrind-output \
106
+ python3 -m pytest -vv --valgrind --valgrind-log=/tmp/valgrind-output Tests/
107
+
102
108
.PHONY : readme
103
109
readme :
104
110
python3 -c " import markdown2" > /dev/null 2>&1 || python3 -m pip install markdown2
Original file line number Diff line number Diff line change 14
14
fun:_TIFFReadEncodedTileAndAllocBuffer
15
15
...
16
16
}
17
+
18
+ {
19
+ <python_alloc_possible_leak>
20
+ Memcheck:Leak
21
+ match-leak-kinds: possible
22
+ fun:malloc
23
+ fun:_PyMem_RawMalloc
24
+ fun:PyObject_Malloc
25
+ ...
26
+ }
27
+
28
+ {
29
+ <python_realloc_possible_leak>
30
+ Memcheck:Leak
31
+ match-leak-kinds: possible
32
+ fun:malloc
33
+ fun:_PyMem_RawRealloc
34
+ fun:PyMem_Realloc
35
+ ...
36
+ }
You can’t perform that action at this time.
0 commit comments