vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

Configuration option deserialize bug.

Open yunfeiyangcc opened this issue 3 years ago • 2 comments

@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)) image

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. image

yunfeiyangcc avatar Jul 07 '21 09:07 yunfeiyangcc

I am afraid I do need to see the message bytes to understand the root cause.

lutzbichler avatar Jul 10 '21 14:07 lutzbichler

I also encountered this problem. The solution is to exit if the length is equal to 0. image

ims0 avatar Dec 08 '21 06:12 ims0

Hi all. Fix also introduced in 3.3.5.1 and present on all the subsequent releases. Closing the issue.

DiogoPedrozza avatar Jun 05 '23 14:06 DiogoPedrozza