Skip to content

test: Remove superfluous null byte from ps3_hid_report_descriptor#16010

Merged
slouken merged 1 commit into
libsdl-org:mainfrom
ao2:wip/ao2/task957-fixes
Jul 16, 2026
Merged

test: Remove superfluous null byte from ps3_hid_report_descriptor#16010
slouken merged 1 commit into
libsdl-org:mainfrom
ao2:wip/ao2/task957-fixes

Conversation

@ao2

@ao2 ao2 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
  • I confirm that I am the author of this code and release it to the SDL project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

Remove a superfluous null byte at the end of ps3_hid_report_descriptor, as it might confuse some more stricter parser.

Description

The data in ps3_hid_report_descriptor probably comes for a libinput recording, and sometimes those can have superfluous null byte at the end.

This is mentioned for example in the hidreport project: https://github.com/hidutils/hidreport/blob/64d40674038e8bb5e76c4191f5561ec1928c3c72/tools/libinput-recording-extract-hid-descriptor.py#L25-L27

As a proof that the original HID report descriptor of the actual device is 148 bytes long, the following lsusb capture can be compared: http://ps3.jim.sh/sixaxis/usb/lsusb.txt

Remove a superfluous null byte at the end of ps3_hid_report_descriptor,
as it might confuse some more stricter parser.

The data in ps3_hid_report_descriptor probably comes for a libinput
recording, and sometimes those can have superfluous null byte at the
end.

This is mentioned for example in the hidreport project:
https://github.com/hidutils/hidreport/blob/64d40674038e8bb5e76c4191f5561ec1928c3c72/tools/libinput-recording-extract-hid-descriptor.py#L25-L27

As a proof that the original HID report descriptor of the actual device
is 148 bytes long, the following lsusb capture can be compared:
http://ps3.jim.sh/sixaxis/usb/lsusb.txt

Signed-off-by: Antonio Ospite <antonio.ospite@collabora.com>
@ao2

ao2 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

cc @smcv

@slouken
slouken merged commit d330686 into libsdl-org:main Jul 16, 2026
10 checks passed
@slouken

slouken commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Merged, thanks!

@ao2
ao2 deleted the wip/ao2/task957-fixes branch July 17, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants