Skip to content

modbus_reply_exception: validate function code - #869

Open
Akul123 wants to merge 1 commit into
stephane:masterfrom
Akul123:master
Open

modbus_reply_exception: validate function code#869
Akul123 wants to merge 1 commit into
stephane:masterfrom
Akul123:master

Conversation

@Akul123

@Akul123 Akul123 commented Aug 3, 2026

Copy link
Copy Markdown

This is proposed solution for [https://github.com//issues/845]

  • modbus_reply_exception: reject function codes above 0x7F
  • Return EMBXILFUN when the request function already has the exception bit set instead of generating a wrapped response function code.
  • Added small test for the lower(0x80) and upper(0xFF) invalid boundaries.

- modbus_reply_exception: reject function codes above 0x7F
- Return EMBXILFUN when the request function already has the exception
bit set instead of generating a wrapped response function code.
- Added small test for the lower(0x80) and upper(0xFF) invalid
boundaries.
@cla-bot

cla-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...

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.

1 participant