There was an error while loading. Please reload this page.
1 parent 9c739b6 commit 9522a34Copy full SHA for 9522a34
1 file changed
src/_vmprof.c
@@ -76,7 +76,7 @@ PyObject *enable_vmprof(PyObject* self, PyObject *args)
76
}
77
if (!PyArg_ParseTuple(args, "id|s#", &fd, &period_float, &x, &x_len))
78
return NULL;
79
- buf = (char*)malloc(x_len + sizeof(long) + 2 + 7);
+ buf = (char*)malloc(x_len + sizeof(long) + 4 + 7);
80
buf[0] = MARKER_HEADER;
81
buf[1] = '\x00';
82
buf[2] = VERSION_THREAD_ID;
0 commit comments