From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4638b6b88153b39703eefcdb696879dd@hamnavoe.com> To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Mon, 3 Mar 2014 13:52:14 +0000 In-Reply-To: <47f7af29bc1c7309576fbbd8cdb970e5@mikro.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] usb configuration Topicbox-Message-UUID: c211c698-ead8-11e9-9d60-3106f5b1d025 > you beat me to it Yes, we're obviously working in parallel. I've also spotted that loaddevstr is very wrong. First it reads into a 128-byte buffer, when the spec says strings are up to 256 bytes (including type and length codes). Then it ignores the length code at the beginning of the string and uses the number of bytes returned by the Rgetdesc, which would explain why usb/probe often shows garbage trailing characters in vendor and device identifiers.