Page MenuHomeFreeBSD

libusb: change callback register handler to int
ClosedPublic

Authored by aokblast on Dec 13 2025, 3:16 PM.
Tags
None
Referenced Files
F166718631: D54211.id167996.diff
Sat, Aug 15, 8:46 PM
Unknown Object (File)
Thu, Aug 13, 12:09 PM
Unknown Object (File)
Wed, Aug 12, 4:00 AM
Unknown Object (File)
Wed, Aug 12, 12:02 AM
Unknown Object (File)
Tue, Aug 11, 5:17 PM
Unknown Object (File)
Mon, Aug 10, 7:59 AM
Unknown Object (File)
Sun, Aug 9, 10:22 PM
Unknown Object (File)
Sun, Aug 9, 6:21 AM
Subscribers

Details

Summary

libusb upstream uses int for register handler. This causes some library
user (like pyusb) to assume that we have int in all implementations and
therefore provides a 4 byte storage only. This causes Segmentation
fault as we will right the pointer.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 14 2025, 1:46 AM

This should be fine to recommit now that the so version has been bumped

Oh, I can re-commit this version. Let me bring it back later.

It needs rebase. Do it tomorrow.