vsomeip
vsomeip copied to clipboard
Configuration option deserialize bug.
@lutzbichler
Hi lutzbichler,
There are two IPv4 option and a configuration option in the subscribe message.
Order as follows:
0: Configuration Option
1: IPv4 Endpoint Option (192.168.116.131:41234(TCP))
2: IPv4 Endpoint Option (192.168.116.131:44234(UDP))
When the SD receives this subscribe message and deserialize it. Because the remaining_length is set by options_length_(45), the length of configuration option is 18. so it cannot stop deserializing until the end of the subscribe message.
I made a change in function(configuration_option_impl::deserialize), please check it.
I am afraid I do need to see the message bytes to understand the root cause.
I also encountered this problem. The solution is to exit if the length is equal to 0.
Hi all. Fix also introduced in 3.3.5.1 and present on all the subsequent releases. Closing the issue.