Skip to content

CMock does not work as expected & Segmentation Fault #364

@xinyuanzzz

Description

@xinyuanzzz

I have been using CMock for a while, and sometimes CMock could cause segmentation fault or accidentally mess up the memory of local variables. This problem disappears if all the variables needed are defined globally.

Another issue is that CMock_verify() and CMock_init() can cause segmentation fault. Please take a look at this PR, I built the test runner manually, if I add one more resetTest() below the last line of bpf/tests/nat_test.h:test_snat_v4_process, that resetTest() will cause segmentation fault.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions