From 0711dd10ac0eba82890aeef2c8a80bae6d3c160f Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 4 Dec 2011 17:04:57 +0000 Subject: [PATCH] Add 1K to the usb stack to prevent overflow in screendump mode git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_10@31139 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/usb.c b/firmware/usb.c index 4e71c06119..2134f4e09c 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -72,7 +72,7 @@ static int usb_mmc_countdown = 0; /* Make sure there's enough stack space for screendump */ #ifdef USB_FULL_INIT -static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE)/sizeof(long)]; +static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE + 0x400)/sizeof(long)]; static const char usb_thread_name[] = "usb"; static unsigned int usb_thread_entry = 0; static bool usb_monitor_enabled = false;