Skip to content

[BUG]: Overflow in asiggn_client_command.cpp #1030

@binbowang1987

Description

@binbowang1987

vSomeip Version

82adfa0

Boost Version

1.86

Environment

Windows 11 + Visual Studio 2022

Describe the bug

I just run the client and service examplea as https://github.com/COVESA/vsomeip/wiki/vsomeip-in-10-minutes, and it crashed.
I found that this code will cause crash as the index _buffer.size() will overflow.

name_.assign(&_buffer[COMMAND_POSITION_PAYLOAD], &_buffer[_buffer.size()]);

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions