aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/06_giop-buffer.dpatch
blob: 4c3cc6a799142546377af971573e3b22c52bde34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh /usr/share/dpatch/dpatch-run
## 06_giop-buffer.dpatch by  <fpeters@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./epan/dissectors/packet-giop.c /tmp/dpep-work.7N90PO/wireshark-0.10.11/epan/dissectors/packet-giop.c
--- ./epan/dissectors/packet-giop.c	2005-07-17 18:52:08.000000000 +0200
+++ /tmp/dpep-work.7N90PO/wireshark-0.10.11/epan/dissectors/packet-giop.c	2005-07-17 18:55:32.000000000 +0200
@@ -1760,6 +1760,8 @@
 
   if (len == 0)
     return FALSE;
+  if (*offset > header->message_size)
+    return FALSE;
 
   saved_proto = pinfo->current_proto;
   for (i=0; i<len; i++) {