diff options
Diffstat (limited to 'testing/dsniff/16_TDS_decoder.patch')
-rw-r--r-- | testing/dsniff/16_TDS_decoder.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/dsniff/16_TDS_decoder.patch b/testing/dsniff/16_TDS_decoder.patch new file mode 100644 index 0000000000..4bca9355a3 --- /dev/null +++ b/testing/dsniff/16_TDS_decoder.patch @@ -0,0 +1,16 @@ +Author: Luciano Bello <luciano@debian.org> +Description: Patch provided by Hilko Bengen. #609988. +--- a/decode_tds.c ++++ b/decode_tds.c +@@ -144,6 +144,11 @@ + len > sizeof(*th) && len >= ntohs(th->size); + buf += ntohs(th->size), len -= ntohs(th->size)) { + ++ if (th->size != 8) { ++ /* wrong header length */ ++ break; ++ } ++ + if (th->type == 2) { + /* Version 4.x, 5.0 */ + if (len < sizeof(*th) + sizeof(*tl)) |