Author: Luciano Bello <luciano@debian.org>
Description: Patch provided by Hilko Bengen. #609988.
--- a/decode_tds.c	2011-06-19 17:15:27.275999371 -0500
+++ b/decode_tds.c	2011-06-19 17:15:35.483999369 -0500
@@ -140,6 +140,11 @@
 	
 	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)) {
