diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-25 23:14:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-25 23:14:05 +0000 |
commit | 8ede6b7dc09aa636f87147ab432a137c209e8aca (patch) | |
tree | 70dfe92bdc7ad6288e9afc11bda49c94f6277568 /epan/dissectors/packet-gsm_a_bssmap.c | |
parent | 8432edcc724224bfd52021171774dc948361a07f (diff) |
bssmap_msg_fcn[] is a dense array, not a sparse array, so *every* entry
must be filled in - even if we don't happen to have dissectors for
particular message types. Just put NULL in there, so we don't index
past the end of the array, grab a random location in memory's contents
as a function pointer, and crash when we call through that pointer.
svn path=/trunk/; revision=46747
Diffstat (limited to 'epan/dissectors/packet-gsm_a_bssmap.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_bssmap.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-gsm_a_bssmap.c b/epan/dissectors/packet-gsm_a_bssmap.c index c7009a4e34..51ace65f2f 100644 --- a/epan/dissectors/packet-gsm_a_bssmap.c +++ b/epan/dissectors/packet-gsm_a_bssmap.c @@ -6864,12 +6864,13 @@ static void (*bssmap_msg_fcn[])(tvbuff_t *tvb, proto_tree *tree, packet_info *pi bssmap_int_ho_req_rej, /* 0x71 Internal Handover Required Reject */ bssmap_int_ho_cmd, /* 0x72 Internal Handover Command */ bssmap_int_ho_enq, /* 0x73 Internal Handover Enquiry */ - /* 0x74 LCLS-Connect-Control */ - /* 0x75 LCLS-Connect-Control-Ack */ - /* 0x76 LCLS-Notification */ - /* 0x77 Unallocated */ - /* 0x78 Reroute Command */ - /* 0x79 Reroute Complete */ + + NULL, /* 0x74 LCLS-Connect-Control */ + NULL, /* 0x75 LCLS-Connect-Control-Ack */ + NULL, /* 0x76 LCLS-Notification */ + NULL, /* 0x77 Unallocated */ + NULL, /* 0x78 Reroute Command */ + NULL, /* 0x79 Reroute Complete */ NULL, /* NONE */ }; |