diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-13 01:24:47 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-13 01:24:47 +0000 |
commit | cf2271d53f1fe6a39dc68a0ba22fd88f5753e515 (patch) | |
tree | 3becaf90450ff578c7dc8dbcd051987b3ee15ba4 /packet-giop.h | |
parent | f6f65622f92004bcf04010e74db2ac0606220e64 (diff) |
Add a "tvb_ensure_bytes_exist()", which is like "tvb_bytes_exist()" only
it throws the appropriate exception if the bytes don't exist. Use it in
the GIOP and ASN.1 code to check whether the bytes to be copied to a
buffer exist before allocating the buffer.
Make "check_offset_length_no_exception()" check for an overflow, so that
it can be used in "tvb_ensure_bytes_exist()" and do all the checking
that the code "tvb_ensure_bytes_exist()" replaces did.
Make "get_CDR_wchar()" return a "gint", so that if the length octet it
fetched has a value between 128 and 255, the length can be returned
correctly.
Fix some comments not to specify the exception thrown by various
routines that can throw various exceptions.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5453 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-giop.h')
-rw-r--r-- | packet-giop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-giop.h b/packet-giop.h index 690f796176..3e43eac4dc 100644 --- a/packet-giop.h +++ b/packet-giop.h @@ -4,7 +4,7 @@ * * Based on CORBAv2.4.2 Chapter 15 GIOP Description. * - * $Id: packet-giop.h,v 1.8 2002/05/12 20:43:29 gerald Exp $ + * $Id: packet-giop.h,v 1.9 2002/05/13 01:24:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -484,7 +484,7 @@ extern guint16 get_CDR_ushort(tvbuff_t *tvb, int *offset, * Wchar is not supported for GIOP 1.0. */ -extern gint8 get_CDR_wchar(tvbuff_t *tvb, gchar **seq, int *offset, +extern gint get_CDR_wchar(tvbuff_t *tvb, gchar **seq, int *offset, MessageHeader * header); |