[Bug 672] New: [PATCH] check for valid config descriptors
bugzilla-daemon at bugzilla.openmoko.org
bugzilla-daemon at bugzilla.openmoko.org
Tue Jul 31 15:12:57 CEST 2007
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=672
Summary: [PATCH] check for valid config descriptors
Product: OpenMoko
Version: current svn head
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: dfu-util
AssignedTo: werner at openmoko.org
ReportedBy: nick at anywi.com
CC: buglog at lists.openmoko.org
Even if the device is found, the config descriptors are not always valid. Add
a check for a valid value in cfg:
Index: main.c
===================================================================
--- main.c (revision 2384)
+++ main.c (working copy)
@@ -85,6 +85,8 @@
for (cfg_idx = 0; cfg_idx < dev->descriptor.bNumConfigurations;
cfg_idx++) {
cfg = &dev->config[cfg_idx];
+ if (cfg == NULL)
+ return 1;
for (intf_idx = 0; intf_idx < cfg->bNumInterfaces;
intf_idx++) {
uif = &cfg->interface[intf_idx];
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the buglog
mailing list