projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8941e
)
Checks that the fragmentation buffer is not bigger than negociated value
author
rdp.effort
<rdp.effort@gmail.com>
Thu, 28 Feb 2013 11:20:46 +0000
(12:20 +0100)
committer
rdp.effort
<rdp.effort@gmail.com>
Thu, 28 Feb 2013 11:20:46 +0000
(12:20 +0100)
libfreerdp/core/fastpath.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/fastpath.c
b/libfreerdp/core/fastpath.c
index
af727fd
..
f2e67a9
100644
(file)
--- a/
libfreerdp/core/fastpath.c
+++ b/
libfreerdp/core/fastpath.c
@@
-340,7
+340,11
@@
static int fastpath_recv_update_data(rdpFastPath* fastpath, STREAM* s)
stream_check_size(fastpath->updateData, size);
stream_copy(fastpath->updateData, comp_stream, size);
- /* TODO: add a limit on the fragmentation buffer size */
+ if (stream_get_size(fastpath->updateData) > rdp->settings->MultifragMaxRequestSize)
+ {
+ printf("fastpath PDU is bigger than MultifragMaxRequestSize\n");
+ return -1;
+ }
if (fragmentation == FASTPATH_FRAGMENT_LAST)
{