Skip to content

Bugfix for debug mode #6

@issb-gh

Description

@issb-gh

In method ini_control_transfer there is the array question[].
It is 2 bytes in size.

char question[] = { 0x01,0x01 };

however, 8 bytes are expected in the for loop. This results is a buffer overflow.
if(debug) { for (i=0;i<reqIntLen; i++) fprintf(stderr, "%02x ",question[i] & 0xFF); fprintf(stderr, "\n"); }

better is:
for (i=0;i<2; i++) or sizeof

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions