Skip to content

Conversation

@ArcEye
Copy link

@ArcEye ArcEye commented Mar 27, 2018

struct stepgen_t contained space for params, but not all were created.
Later assignments and comparisons worked even though the param did
not exist, because the original hal_xxx_t existed in the struct.

When params were converted to pointers to enable real pin creation
these shortcuts caused segfaults addressing null pointers

struct stepgen_t contained space for params, but not all were created.
Later assignments and comparisons worked even though the param did
not exist, because the original hal_xxx_t existed in the struct.

When params were converted to pointers to enable real pin creation
these shortcuts caused segfaults addressing null pointers

Signed-off-by: Mick <[email protected]>
@ArcEye
Copy link
Author

ArcEye commented Mar 27, 2018

Removed the debris from the commit not in your repo, should be clearer now

@machinekoder
Copy link
Owner

Nice catch!

@machinekoder
Copy link
Owner

Back in machinekit#1344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants