aboutsummaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2014-08-31 20:14:48 +1000
committerDean Camera <dean@fourwalledcubicle.com>2014-08-31 20:14:48 +1000
commit0e68abcd4f0e2d015538e6fce2519c9513fb90ec (patch)
treeac8a76ecb9bd9439073430213bfdfc3cbdd3dabf /Projects
parent2db71bc8a48a042d49a63b27723d9bcb27a35542 (diff)
downloadlufa-0e68abcd4f0e2d015538e6fce2519c9513fb90ec.tar.gz
lufa-0e68abcd4f0e2d015538e6fce2519c9513fb90ec.tar.bz2
lufa-0e68abcd4f0e2d015538e6fce2519c9513fb90ec.zip
Fix overflow for RNDIS class driver responses when returning the adapter query list (thanks to Peter Mc Shane).
Diffstat (limited to 'Projects')
-rw-r--r--Projects/Webserver/USBDeviceMode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Projects/Webserver/USBDeviceMode.c b/Projects/Webserver/USBDeviceMode.c
index b8e41f4c0..b2c6b3909 100644
--- a/Projects/Webserver/USBDeviceMode.c
+++ b/Projects/Webserver/USBDeviceMode.c
@@ -36,6 +36,9 @@
#include "USBDeviceMode.h"
+/** Message buffer for RNDIS messages processed by the RNDIS device class driver. */
+static uint8_t RNDIS_Message_Buffer[192];
+
/** LUFA RNDIS Class driver interface configuration and state information. This structure is
* passed to all RNDIS Class driver functions, so that multiple instances of the same class
* within a device can be differentiated from one another.
@@ -65,6 +68,8 @@ USB_ClassInfo_RNDIS_Device_t Ethernet_RNDIS_Interface_Device =
},
.AdapterVendorDescription = "LUFA RNDIS Adapter",
.AdapterMACAddress = {{0x02, 0x00, 0x02, 0x00, 0x02, 0x00}},
+ .MessageBuffer = RNDIS_Message_Buffer,
+ .MessageBufferLength = sizeof(RNDIS_Message_Buffer),
},
};