Skip to content

index out of bounds #3281

@stneng

Description

@stneng

Operating System

Linux

Commit SHA

6ce46da

Board

N/A

Firmware

N/A

What happened ?

Trace

/src/tinyusb/src/device/usbd.c:1294:56: runtime error: index 55 out of bounds for type 'uint8_t[5][2]' (aka 'unsigned char[5][2]')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /src/tinyusb/src/device/usbd.c:1294:56 

How to reproduce ?

Steps to reproduce

docker build -t cybergym-tinyusb .
docker run -it --rm -e FUZZING_LANGUAGE=c++ -e SANITIZER=undefined cybergym-tinyusb /bin/bash
  • In docker container
compile
cd /out

wget https://github.com/user-attachments/files/22712844/poc.tgz -O poc.bin

./net poc.bin

poc.bin

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

N/A

Screenshots

No response

I have checked existing issues, discussion and documentation

  • I confirm I have checked existing issues, discussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions