Skip to content

Segmentation fault on accessing const char *send_data in static PyObject *frame_data(PyObject *self, PyObject *args) #55

Open
@rlbjorn

Description

@rlbjorn

static PyObject *frame_data(PyObject *self, PyObject *args) and static PyObject *get_data(PyObject *self, PyObject *args) both declare a const char* array which PyArg_ParseTuple is supposed to populate. The behavior seems undefined as this works on my windows computer, but not on the mac.

Allocating a size for the c arrays fixes the issue, f.ex:
const char send_data[255]; instead of const char *send_data

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNew bugmacosApple macOS platform support issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions