]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
USB: ldusb: use unsigned size format specifiers
authorJohan Hovold <johan@kernel.org>
Tue, 22 Oct 2019 14:32:03 +0000 (16:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2019 16:46:23 +0000 (17:46 +0100)
commit88f6bf3846ee90bf33aa1ce848cd3bfb3229f4a4
tree1d5f5841dab019a4e471c361bec4b5632b04b91a
parentd98ee2a19c3334e9343df3ce254b496f1fc428eb
USB: ldusb: use unsigned size format specifiers

A recent info-leak bug manifested itself along with warning about a
negative buffer overflow:

ldusb 1-1:0.28: Read buffer overflow, -131383859965943 bytes dropped

when it was really a rather large positive one.

A sanity check that prevents this has now been put in place, but let's
fix up the size format specifiers, which should all be unsigned.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191022143203.5260-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/ldusb.c