[Spice-devel] [PATCH 3/5] The kernel limits stack size to 2048; we can safely skip ahead a little more slowly and be kernel compatible.
Jeremy White
jwhite at codeweavers.com
Tue Jun 30 13:57:40 PDT 2015
Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
usbredirparser/usbredirparser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usbredirparser/usbredirparser.c b/usbredirparser/usbredirparser.c
index 58f62c3..154d95b 100644
--- a/usbredirparser/usbredirparser.c
+++ b/usbredirparser/usbredirparser.c
@@ -967,7 +967,7 @@ int usbredirparser_do_read(struct usbredirparser *parser_pub)
/* Skip forward to next packet (only used in error conditions) */
while (parser->to_skip > 0) {
- uint8_t buf[65536];
+ uint8_t buf[1024];
r = (parser->to_skip > sizeof(buf)) ? sizeof(buf) : parser->to_skip;
r = parser->callb.read_func(parser->callb.priv, buf, r);
if (r <= 0)
--
2.1.4
More information about the Spice-devel
mailing list