diff options
author | Jörg Mayer <jmayer@loplof.de> | 2007-12-18 00:44:49 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2007-12-18 00:44:49 +0000 |
commit | c2390c4ef71c88cc45bceb78d548b2b13114c0fe (patch) | |
tree | 7b8870a619bdf3c933fdfed7247e7090570b2fc6 /epan/dissectors/packet-erf.c | |
parent | 8060e871dce240cef8b5534be5241023135b6330 (diff) |
Bugfix: Array overflow (found by gcc43)
svn path=/trunk/; revision=23907
Diffstat (limited to 'epan/dissectors/packet-erf.c')
-rw-r--r-- | epan/dissectors/packet-erf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-erf.c b/epan/dissectors/packet-erf.c index 0cc3660f05..956aff3ad4 100644 --- a/epan/dissectors/packet-erf.c +++ b/epan/dissectors/packet-erf.c @@ -149,7 +149,7 @@ typedef enum { ERF_HDLC_MAX = 5 } erf_hdlc_type; gint erf_hdlc_default = ERF_HDLC_MTP2; -static dissector_handle_t erf_hdlc_dissector[ERF_HDLC_MAX]; +static dissector_handle_t erf_hdlc_dissector[ERF_HDLC_MAX+1]; typedef enum { ERF_ATM_ATM = 1, @@ -157,7 +157,7 @@ typedef enum { ERF_ATM_MAX = 3 } erf_atm_type; gint erf_atm_default = ERF_ATM_MAX; -static dissector_handle_t erf_atm_dissector[ERF_ATM_MAX]; +static dissector_handle_t erf_atm_dissector[ERF_ATM_MAX+1]; typedef enum { ERF_ETH_ETHFCS = 1, @@ -165,7 +165,7 @@ typedef enum { ERF_ETH_MAX = 3 } erf_eth_type; gint erf_eth_default = ERF_ETH_MAX; -static dissector_handle_t erf_eth_dissector[ERF_ETH_MAX]; +static dissector_handle_t erf_eth_dissector[ERF_ETH_MAX+1]; /* Header for ATM trafic identification */ #define ATM_HDR_LENGTH 4 |