Permalink
Browse files

apply debian patch 16_TDS_decoder.patch

  • Loading branch information...
1 parent 6b856d4 commit a31a4d1c20cbea21902f0f238ff0e40ce5cd17ea @wertarbyte committed Oct 29, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 decode_tds.c
View
@@ -140,6 +140,11 @@ decode_tds(u_char *buf, int len, u_char *obuf, int olen)
obuf[0] = '\0';
+ if (th->size != 8) {
+ /* wrong header length */
+ return (strlen(obuf));
+ }
+
for (th = (struct tds_hdr *)buf;
len > sizeof(*th) && len >= ntohs(th->size);
buf += ntohs(th->size), len -= ntohs(th->size)) {

0 comments on commit a31a4d1

Please sign in to comment.