Hey Pete,
sorry, for bothering you, but this time, there was no bug in libusbx. I just 
requested a to big string (my buffer length was 255) and this blew things up.
So everything is fine. THX! :-)

Best regards
Stefano

-------- Original-Nachricht --------
> Datum: Tue, 30 Oct 2012 13:59:11 +0100
> Von: "Stefano Di Martino" <stefan...@gmx.net>
> An: libusbx-devel@lists.sourceforge.net
> Betreff: Re: [Libusbx-devel] Bug in get_string_descriptor?

> Hi Pete,
> I'm not sure, if the bug is completely fixed.
> pyUSB uses a different method to retrieve the string descriptor. It's
> doing it with ctrl_transfer() and the appropriate request and I'm getting an
> overflow error.
> I tried to port this method to C and instead of getting a string, I get
> cryptic characters, which indicated indead an overflow.
> 
> I attach an C example and different logs and Python code which shows how
> pyUSB retrieves a string descriptor.
> 
> Best regards
> Stefano
> 
> -------- Original-Nachricht --------
> > Datum: Mon, 29 Oct 2012 23:52:16 +0000
> > Von: Pete Batard <p...@akeo.ie>
> > An: libusbx-devel@lists.sourceforge.net
> > Betreff: Re: [Libusbx-devel] Bug in get_string_descriptor?
> 
> > The latest commit [1] should fix access to composite HID interfaces.
> > 
> > If you need help recompiling from latest git, please see 
> > https://github.com/libusbx/libusbx/wiki#wiki-Accessing_the_Source
> > Alternatively, you can just download the github zipball from 
> > https://github.com/libusbx/libusbx/zipball/master
> > 
> > Just to confirm that things work as they should, a debug output of xusb 
> > -d against your device would be nice.
> > 
> > Regards,
> > 
> > /Pete
> > 
> > [1] 
> >
> https://github.com/libusbx/libusbx/commit/fdff665a44169eda702a1267a3bbb4501d6bb3ee
> > 
> >
> ------------------------------------------------------------------------------
> > The Windows 8 Center - In partnership with Sourceforge
> > Your idea - your app - 30 days.
> > Get started!
> > http://windows8center.sourceforge.net/
> >
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> > _______________________________________________
> > libusbx-devel mailing list
> > libusbx-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/libusbx-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to