Skip to content

Buffer overread in rm2fb client #37

@matteodelabre

Description

@matteodelabre

There is a buffer overread in the following call to msgsnd:

if (msgsnd(this->msgqueue_id, &message, sizeof(message), 0) == -1)

As per the man page, the msgsz argument (third argument) should not include the size of the mtype field, only of the data field, so currently this call will read 4 extra bytes from memory and send them to the server.

(Related to ddvk/remarkable2-framebuffer#89.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions