Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit fdd0a8c8 authored by Jimmy Hu's avatar Jimmy Hu Committed by Michael Bestas
Browse files

usb: fix undefined behavior caused by zero-length array



The use of zero-length array causes undefined behavior.
Replace zero-length array with flexible-array member.

Bug: 174330770
Test: build pass and boot to home
Change-Id: I080ed1555d5b60075f6a86aa0ac15427529f7a1b
Signed-off-by: default avatarJimmy Hu <hhhuuu@google.com>
Signed-off-by: default avatarPuma Hsu <pumahsu@google.com>
parent e46a2eed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment