Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modbus_new_rtu Segmentation Fault when device argument is NULL #184

Closed
FifteenFifty opened this issue Dec 13, 2013 · 0 comments
Closed

modbus_new_rtu Segmentation Fault when device argument is NULL #184

FifteenFifty opened this issue Dec 13, 2013 · 0 comments
Milestone

Comments

@FifteenFifty
Copy link

If the device argument to modbus_new_rtu is NULL, modbus_free is called on the context (src/modbus-rtu.c:1158).

Due to ctx->backend_data->device not having been malloc'd (this currently happens after the NULL device check), the free on line 1115 (src/modbus-rtu.c:1115) causes a segmentation fault.

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

No branches or pull requests

1 participant