diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-01-23 18:31:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-01-23 18:31:26 +0000 |
commit | 10778a6ab1fe20daabc952ee736c478e826ddd33 (patch) | |
tree | 833b369d96c1b6206a08cd470a24f79e3d8f546b /epan | |
parent | 39b2dd897da6c89f225d7ab9de41abde3447d14b (diff) |
DISSECTOR_ASSERT_NOT_REACHED() now, by default, throws a Wireshark
exception rather than aborting the program; using it means that
dissector bugs show up as such rather than as malformed packets.
svn path=/trunk/; revision=20532
Diffstat (limited to 'epan')
-rw-r--r-- | epan/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c index 52cb642fa9..a8c3bface5 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -741,7 +741,7 @@ get_uint_value(tvbuff_t *tvb, gint offset, gint length, gboolean little_endian) break; default: - THROW(ReportedBoundsError); + DISSECTOR_ASSERT_NOT_REACHED(); value = 0; break; } @@ -779,7 +779,7 @@ get_int_value(tvbuff_t *tvb, gint offset, gint length, gboolean little_endian) break; default: - THROW(ReportedBoundsError); + DISSECTOR_ASSERT_NOT_REACHED(); value = 0; break; } |