{
uint16_t ext_hdr_len;
/*check length before reading data*/
- if (len < lyr_len + 4)
+ if (len < (uint32_t)(lyr_len + 4))
{
codec_events::decoder_event(p, DECODE_GTP_BAD_LEN);
return false;
// when initialization arrays, although the zero is not required
// the compiler complains about a missing-field-initiliezers
-static std::array<uint8_t, max_protocol_id> s_proto_map{0};
-static std::array<Codec*, 256> s_protocols{0};
+static std::array<uint8_t, max_protocol_id> s_proto_map{{0}};
+static std::array<Codec*, 256> s_protocols{{0}};
static THREAD_LOCAL uint8_t grinder = 0;
// statistics information
-static THREAD_LOCAL std::array<PegCount, 256 + gen_peg_size> s_stats{0};
-static std::array<PegCount, 256 + gen_peg_size> g_stats{0};
+static THREAD_LOCAL std::array<PegCount, 256 + gen_peg_size> s_stats{{0}};
+static std::array<PegCount, 256 + gen_peg_size> g_stats{{0}};
static THREAD_LOCAL CdGenPegs pkt_cnt;
//-------------------------------------------------------------------------