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

Critical Fix. Buffer overflow caused random device reboot or hang. Malloc result checking in addReg and exceptionalResponce. Wrong value for every 8-th reg in read/writeCoils, readInputStats. #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

emelianov
Copy link

@emelianov emelianov commented Oct 25, 2017

With some devices Modbus IP packet size is grater than specified in header. So count of bytes to read should be limited by buffer size not packet size from header.

@emelianov
Copy link
Author

addReg and exceptionalResponce needs to be extended with malloc() result checking.

@emelianov emelianov changed the title Critical Fix. Buffer overflow caused random device reboot or hang Critical Fix. Buffer overflow caused random device reboot or hang. Malloc result checking in addReg and exceptionalResponce Feb 15, 2018
@emelianov emelianov changed the title Critical Fix. Buffer overflow caused random device reboot or hang. Malloc result checking in addReg and exceptionalResponce Critical Fix. Buffer overflow caused random device reboot or hang. Malloc result checking in addReg and exceptionalResponce. Fix wrong value for every 8-th reg in read/writeCoils, readInputStats. Jun 22, 2018
@emelianov emelianov changed the title Critical Fix. Buffer overflow caused random device reboot or hang. Malloc result checking in addReg and exceptionalResponce. Fix wrong value for every 8-th reg in read/writeCoils, readInputStats. Critical Fix. Buffer overflow caused random device reboot or hang. Malloc result checking in addReg and exceptionalResponce. Wrong value for every 8-th reg in read/writeCoils, readInputStats. Jun 22, 2018
@emelianov
Copy link
Author

Fix wrong value for every 8-th reg in read/writeCoils, readInputStats

@emelianov emelianov closed this Jun 22, 2018
@emelianov emelianov reopened this Jun 22, 2018
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.

None yet

1 participant