aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-02-01 23:39:18 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-02-01 23:39:18 +0000
commit9627904c2a7f473ebe9d091d27fe482c05acc95f (patch)
treef8c32ab4635fc1369fac27ca884586a46052378d /epan/ftypes
parent046863344e28272a5454fb3f5d4fdd9c483009b9 (diff)
Catch any exception thrown by accessing the tvbuff.
svn path=/trunk/; revision=2978
Diffstat (limited to 'epan/ftypes')
-rw-r--r--epan/ftypes/ftype-tvbuff.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/epan/ftypes/ftype-tvbuff.c b/epan/ftypes/ftype-tvbuff.c
index 2ca08150ab..c412ab8c62 100644
--- a/epan/ftypes/ftype-tvbuff.c
+++ b/epan/ftypes/ftype-tvbuff.c
@@ -1,5 +1,5 @@
/*
- * $Id: ftype-tvbuff.c,v 1.2 2001/02/01 20:31:21 gram Exp $
+ * $Id: ftype-tvbuff.c,v 1.3 2001/02/01 23:39:18 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -63,8 +63,15 @@ slice(fvalue_t *fv, GByteArray *bytes, guint offset, guint length)
guint8* data;
if (fv->value.tvb) {
- data = tvb_get_ptr(fv->value.tvb, offset, length);
- g_byte_array_append(bytes, data, length);
+ TRY {
+ data = tvb_get_ptr(fv->value.tvb, offset, length);
+ g_byte_array_append(bytes, data, length);
+ }
+ CATCH_ALL {
+ /* nothing */
+ }
+ ENDTRY;
+
}
}