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_reply: fix copy & paste error in sanity check (fixes #614) #619

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

mhei
Copy link
Contributor

@mhei mhei commented Jan 8, 2022

While handling MODBUS_FC_WRITE_AND_READ_REGISTERS, both address offsets
must be checked, i.e. the read and the write address must be within the
mapping range.

At the moment, only the read address was considered, it looks like a
simple copy and paste error, so let's fix it.

Signed-off-by: Michael Heimpold [email protected]

)

While handling MODBUS_FC_WRITE_AND_READ_REGISTERS, both address offsets
must be checked, i.e. the read and the write address must be within the
mapping range.

At the moment, only the read address was considered, it looks like a
simple copy and paste error, so let's fix it.

Signed-off-by: Michael Heimpold <[email protected]>
@cla-bot cla-bot bot added the cla-signed label Jan 8, 2022
@stephane stephane merged commit b4ef4c1 into stephane:master Jan 8, 2022
@stephane
Copy link
Owner

stephane commented Jan 8, 2022

Thank you @mhei
As usual, you rocks!

@mhei mhei deleted the fix-issue-614 branch December 12, 2022 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants