Skip to content

Connect Packet data greater than 256 bytes causes buffer overrun in lws_mqtt_client_send_connect() #3563

@amarchand-zebra

Description

@amarchand-zebra

Using version 4.3.3

It appears that when the connect packet data provided to this function exceeds 256 bytes, the function continues to memcpy the data without checking if the pointer p has gone past the end of the buffer b. This is causing a stack smash upon returning from the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions