diff options
author | Matteo Bernardini | 2021-01-30 16:23:40 +0100 |
---|---|---|
committer | Matteo Bernardini | 2021-01-30 16:23:40 +0100 |
commit | c92ee29b17ad2239ce11ddd76134b199ef5a3ed2 (patch) | |
tree | ed33817b0ffbb52c85efc59a8ff7282182e7c0b5 /network/dsniff/patches/16_TDS_decoder.patch | |
parent | 2e286279c8e562590897ef95d592f0ce4edbce32 (diff) | |
download | slackbuilds-c92ee29b17ad2239ce11ddd76134b199ef5a3ed2.tar.gz |
20210130.1 global branch merge.current-20210130.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/dsniff/patches/16_TDS_decoder.patch')
-rw-r--r-- | network/dsniff/patches/16_TDS_decoder.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/network/dsniff/patches/16_TDS_decoder.patch b/network/dsniff/patches/16_TDS_decoder.patch new file mode 100644 index 0000000000..a748243f6c --- /dev/null +++ b/network/dsniff/patches/16_TDS_decoder.patch @@ -0,0 +1,20 @@ +Author: Luciano Bello <luciano@debian.org> +Description: Fix for DOS y TDS decoder. Patch provided by Hilko Bengen. +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609988 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ + +--- 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)) |