Re: [Patch] gutenprint53+usb crashes with libusb-1.0.25
Solomon Peachy <[email protected]>
| Newsgroups | gmane.linux.printing.gimp-print.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 22, 2022 at 07:55:18AM +0100, Zdenek Dohnal wrote:
> there were changes in libusb 1.0.25 which is in Fedora 36 - f.e. default USB
> context is not initialized unless you specifically pass NULL into
> `libusb_init()` - gutenprint53+usb backend actually depended on this hidden
> behavior, because it passes its own context address into `libusb_init()`
> instead of NULL. So the change causes the backend to crash if you run it:
Yikes!
> According libusb maintainer, Ben Berg, the backend can work with the default
> USB context and he prepared the patch for it (the file is attached). I was
> able to verify the patch fixes the crash, but I don't have a device
> supported by gutenprint itself, so I couldn't do an additional sanity
> testing. The patch looks good to me though.
Will this work for multi-threaded stuff where there could conceivably be
multiple contexts in use? That's not being exercised in the current
gutenprint code but some of the stuff I have cooking will change that.
> Would you mind adding the patch to the project if it looks good for you?
I won't be able to physically test any of this until this coming weekend
(out of town and while I have remote access everything pertinent is
turned off) but when I'm back, I'll be able to at least it doesn't
introduce any regressions on F34 & F35.
- Solomon
--
Solomon Peachy pizza at shaftnet dot org (email&xmpp)
@pizza:shaftnet dot org (matrix)
High Springs, FL speachy (libra.chat)
_______________________________________________
Gimp-print-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmIVJLoACgkQrGLLO/XV ulF+fQ/6A3CmJOhfZZl3oSSTWCxruGNbLlHiGEaomZlErpLzt5VytIl4W7TR/gv8 vPls59Ww3SgNLwzgXTZRDLvKRrADy8l4WML9aA/eR3QjiJ3hMb5YwKA7DUGMl7Uv l8Bmpj/3llRGy3vMQ71OuiQiyQWFYb60SOg9glwGtDFMF0D6kosWCAGb8sNE+G8L vCLrWI245eFGsukzpzybnxVm4waeZJ3X5T+SVjcFyYgy5GwPc43AxM/+kNYNiwpe OmwaKtk50LKC+dCgN3iFM9a2F84rGD2EH6B5XU94sGauF+MtD89HMm7HCviNKmJt +9wQe5cLIZB/lXZPpz97FI9+VibhJhZAYDqogdrctvo/RD7X12RiapGGwZYN8atp 7hb6sVWegqhCtiBrNBilv/KVx+rpXIJIJuLpYaD7e7l3ZnDdNa0KUCU0q7ki/3ew uVyOEBZrMU9/DHvGXb1Np/+v5hDyTzKjSVj1kTdCnnYkLZYhApTGm7bNFqyoZKc1 DfrDfmtqtb/d9m1yxo1hml+JxuSU9TT1173VxAy//8rD04zE37tc+p/Rchdqr1gr BNbyWs0M8JOXKvMMcZjLs/GOq3aXp7QB0ZOr89PrUULeEEyu/730Ym6wrdeAZnnV //FQtcwLA7Hx+UFYuOZgoTUnOQrKkI0HZ0xIGzAEtQRd4gu5j8s= =yLhu -----END PGP SIGNATURE-----