--- sourceforge.net/trunk/rdesktop/rdp5.c 2004/07/05 19:09:07 733 +++ sourceforge.net/trunk/rdesktop/rdp5.c 2004/09/11 22:57:42 773 @@ -60,7 +60,8 @@ if (ctype & RDP_MPPC_COMPRESSED) { - + if (length > RDP_MPPC_DICT_SIZE) + error("error decompressed packet size exceeds max\n"); if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1) error("error while decompressing packet\n");