Wireshark-commits: [Wireshark-commits] rev 47676: /trunk/epan/dissectors/ /trunk/epan/dissectors/:
Date: Fri, 15 Feb 2013 17:32:34 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=47676

User: eapache
Date: 2013/02/15 09:32 AM

Log:
 From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8264
 
 Improve handling of truncated USB Configuration descriptors.
 
 In contrast to other descriptor types, configuration descriptors have varying
 lengths and may be quite long. This makes them much more prone to truncation
 by a host that is cautious about reading large descriptors.
 
 A real-world case has arisen where a host requests a partial configuration
 descriptor of a USB webcam, and wireshark improperly reports that the response
 is malformed.
 
 Change configuration descriptor dissection to distinguish between truncation
 induced by the host, which is not an error, and descriptor truncation or
 reporting of invalid descriptor lengths by the device, which are.
 
 This patch also relieves class-specific dissectors of the burden of checking
 that the descriptor length and type fields are available, and that all the
 bytes claimed by the descriptor length are also available.

Directory: /trunk/epan/dissectors/
  Changes    Path            Action
  +31 -25    packet-usb.c    Modified
  +1 -0      packet-usb.h    Modified