1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 11_invalid_giop_r20198.dpatch by <fpeters@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Check length remaining before aligning.
8
diff -urNad wireshark-0.99.4~/epan/dissectors/packet-giop.c wireshark-0.99.4/epan/dissectors/packet-giop.c
9
--- wireshark-0.99.4~/epan/dissectors/packet-giop.c 2006-10-31 17:59:06.000000000 +0000
10
+++ wireshark-0.99.4/epan/dissectors/packet-giop.c 2007-03-01 10:33:52.000000000 +0000
11
@@ -3586,7 +3586,10 @@
12
* GIOP octet stream start.
15
- set_new_alignment(&offset, GIOP_HEADER_SIZE, 8);
16
+ if (tvb_reported_length_remaining(tvb, offset) > 0)
18
+ set_new_alignment(&offset, GIOP_HEADER_SIZE, 8);
22
* Save FN,reqid,and operation for later. Add sub_handle later.