diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-05-14 02:17:58 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-05-14 02:17:58 +0000 |
commit | 049e9309637cd057689cf273b2023afb0d6876ae (patch) | |
tree | 184919dd3e728aad41bc3bb1567b6f95f18564aa /Demos/Host | |
parent | 78e58b6d1c645c3ba1afaa536e2ba5bdab2b235b (diff) | |
download | lufa-049e9309637cd057689cf273b2023afb0d6876ae.tar.gz lufa-049e9309637cd057689cf273b2023afb0d6876ae.tar.bz2 lufa-049e9309637cd057689cf273b2023afb0d6876ae.zip |
Fixed possible invalid program execution when in host mode if corrupt descriptor lengths are supplied by the attached device.
Minor code cleanups to add const and reformat where missing, as well as abstract out the internal device signature start address into a macro, so that it can be altered to suit particular devices within a single architecture if needed.
Add missing documentation to the USB_Device_States_t enum.
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.c b/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.c index 6fce72b3a..72a1be0a9 100644 --- a/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.c +++ b/Demos/Host/Incomplete/AndroidAccessoryHost/ConfigDescriptor.c @@ -90,7 +90,7 @@ uint8_t ProcessConfigurationDescriptor(void) /* If the endpoint is a IN type endpoint */
if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN)
- DataINEndpoint = EndpointData;
+ DataINEndpoint = EndpointData;
else
DataOUTEndpoint = EndpointData;
}
|