Parent Directory | Revision Log | Patch
revision 772 by astrand, Mon Jul 12 21:07:39 2004 UTC | revision 773 by jsorg71, Sat Sep 11 22:57:42 2004 UTC | |
---|---|---|
# | Line 1071 process_data_pdu(STREAM s, uint32 * ext_ | Line 1071 process_data_pdu(STREAM s, uint32 * ext_ |
1071 | uint8 ctype; | uint8 ctype; |
1072 | uint16 clen; | uint16 clen; |
1073 | uint32 len; | uint32 len; |
1074 | static int max_size; | |
1075 | ||
1076 | uint32 roff, rlen; | uint32 roff, rlen; |
1077 | ||
# | Line 1085 process_data_pdu(STREAM s, uint32 * ext_ | Line 1086 process_data_pdu(STREAM s, uint32 * ext_ |
1086 | ||
1087 | if (ctype & RDP_MPPC_COMPRESSED) | if (ctype & RDP_MPPC_COMPRESSED) |
1088 | { | { |
1089 | if (len > RDP_MPPC_DICT_SIZE) | |
1090 | error("error decompressed packet size exceeds max\n"); | |
1091 | if (mppc_expand(s->p, clen, ctype, &roff, &rlen) == -1) | if (mppc_expand(s->p, clen, ctype, &roff, &rlen) == -1) |
1092 | error("error while decompressing packet\n"); | error("error while decompressing packet\n"); |
1093 |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |