aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dsniff/16_TDS_decoder.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-09-29 12:30:58 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-09-29 12:31:09 +0000
commit526d616a09c1191b1b8ed13998538af2c2040d89 (patch)
tree44b52145e0a7f38a1530db765d9e72e669fec861 /testing/dsniff/16_TDS_decoder.patch
parent0dba7bc25a37335d5bd351b3d073aff1e5c9eef7 (diff)
downloadaports-526d616a09c1191b1b8ed13998538af2c2040d89.tar.bz2
aports-526d616a09c1191b1b8ed13998538af2c2040d89.tar.xz
testing/dsniff: new aport
Diffstat (limited to 'testing/dsniff/16_TDS_decoder.patch')
-rw-r--r--testing/dsniff/16_TDS_decoder.patch16
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))