Details
Description
The host name attribute 6 of the TCP/IP Interface object is of type STRING and has the following format:
[ name lenght (2 bytes)] [ host name (1 byte per character) ]
The maximum number of characters is limited to 64.
In case of a write access to this attribute, the stack shall validate the incoming data before storing.
One check is currently missing:
The provided name length (first 2 bytes) shall match the number of actually provided hostname characters.
So this should lead to a general status error 0x09 (Invalid attribute value):
[04 00] ["NameTooLong"]
The length indicates 4 characters, but the actual name is 11 characters long.
Attachments
Issue Links
- relates to
-
PSEISV3-429 Additional parameter check for the hostname attribute (incompatible API change)
- Closed