aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2022-04-19 21:57:42 +0200
committerGerald Combs <gerald@wireshark.org>2022-04-19 20:45:24 +0000
commit7cbb6e9a76503863e1017d8688509cef7d0648c0 (patch)
tree45d82c5d2756f4fb41e7dee3c0ea4f03d02ac65b
parente4c46563fb272e0b0c5a2c453f8c6564f852eaec (diff)
dissectors: init memory before use.
CID: 52571445-27
-rw-r--r--epan/dissectors/asn1/camel/packet-camel-template.c1
-rw-r--r--epan/dissectors/asn1/h225/packet-h225-template.c1
-rw-r--r--epan/dissectors/packet-asap.c1
-rw-r--r--epan/dissectors/packet-calcappprotocol.c1
-rw-r--r--epan/dissectors/packet-camel.c1
-rw-r--r--epan/dissectors/packet-componentstatus.c1
-rw-r--r--epan/dissectors/packet-dhcp.c1
-rw-r--r--epan/dissectors/packet-enrp.c1
-rw-r--r--epan/dissectors/packet-fractalgeneratorprotocol.c1
-rw-r--r--epan/dissectors/packet-h225.c2
-rw-r--r--epan/dissectors/packet-netperfmeter.c1
-rw-r--r--epan/dissectors/packet-pingpongprotocol.c1
-rw-r--r--epan/dissectors/packet-scriptingservice.c1
13 files changed, 14 insertions, 0 deletions
diff --git a/epan/dissectors/asn1/camel/packet-camel-template.c b/epan/dissectors/asn1/camel/packet-camel-template.c
index b674b02583..9e2ffbcf1e 100644
--- a/epan/dissectors/asn1/camel/packet-camel-template.c
+++ b/epan/dissectors/asn1/camel/packet-camel-template.c
@@ -1173,6 +1173,7 @@ static void camel_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
items[COUNT_COLUMN].type = TABLE_ITEM_UINT;
items[COUNT_COLUMN].value.uint_value = 0;
diff --git a/epan/dissectors/asn1/h225/packet-h225-template.c b/epan/dissectors/asn1/h225/packet-h225-template.c
index cb504f0744..4655e4d688 100644
--- a/epan/dissectors/asn1/h225/packet-h225-template.c
+++ b/epan/dissectors/asn1/h225/packet-h225-template.c
@@ -463,6 +463,7 @@ static void h225_stat_init(stat_tap_table_ui* new_stat)
return;
}
+ memset(items, 0x0, sizeof(items));
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
diff --git a/epan/dissectors/packet-asap.c b/epan/dissectors/packet-asap.c
index c684403212..0815cf5987 100644
--- a/epan/dissectors/packet-asap.c
+++ b/epan/dissectors/packet-asap.c
@@ -678,6 +678,7 @@ static void asap_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-calcappprotocol.c b/epan/dissectors/packet-calcappprotocol.c
index 31431dc2ec..025b4d5f32 100644
--- a/epan/dissectors/packet-calcappprotocol.c
+++ b/epan/dissectors/packet-calcappprotocol.c
@@ -176,6 +176,7 @@ static void calcappprotocol_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-camel.c b/epan/dissectors/packet-camel.c
index b1f70975ca..36c9d1e12a 100644
--- a/epan/dissectors/packet-camel.c
+++ b/epan/dissectors/packet-camel.c
@@ -8203,6 +8203,7 @@ static void camel_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
items[COUNT_COLUMN].type = TABLE_ITEM_UINT;
items[COUNT_COLUMN].value.uint_value = 0;
diff --git a/epan/dissectors/packet-componentstatus.c b/epan/dissectors/packet-componentstatus.c
index 479ec47675..53eeed26e5 100644
--- a/epan/dissectors/packet-componentstatus.c
+++ b/epan/dissectors/packet-componentstatus.c
@@ -328,6 +328,7 @@ static void componentstatusprotocol_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-dhcp.c b/epan/dissectors/packet-dhcp.c
index 5216b29311..954618a6d9 100644
--- a/epan/dissectors/packet-dhcp.c
+++ b/epan/dissectors/packet-dhcp.c
@@ -7288,6 +7288,7 @@ static void dhcp_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (opt53_text[i].strptr)
{
diff --git a/epan/dissectors/packet-enrp.c b/epan/dissectors/packet-enrp.c
index 8be42cfc85..4583eaaff3 100644
--- a/epan/dissectors/packet-enrp.c
+++ b/epan/dissectors/packet-enrp.c
@@ -841,6 +841,7 @@ static void enrp_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-fractalgeneratorprotocol.c b/epan/dissectors/packet-fractalgeneratorprotocol.c
index e67aa74e76..c23a228f77 100644
--- a/epan/dissectors/packet-fractalgeneratorprotocol.c
+++ b/epan/dissectors/packet-fractalgeneratorprotocol.c
@@ -241,6 +241,7 @@ static void fgp_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-h225.c b/epan/dissectors/packet-h225.c
index 93708db82a..4921c04abe 100644
--- a/epan/dissectors/packet-h225.c
+++ b/epan/dissectors/packet-h225.c
@@ -8047,6 +8047,8 @@ static void h225_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
+
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
items[COUNT_COLUMN].type = TABLE_ITEM_UINT;
items[COUNT_COLUMN].value.uint_value = 0;
diff --git a/epan/dissectors/packet-netperfmeter.c b/epan/dissectors/packet-netperfmeter.c
index 942b775c7b..32d7e93a5f 100644
--- a/epan/dissectors/packet-netperfmeter.c
+++ b/epan/dissectors/packet-netperfmeter.c
@@ -608,6 +608,7 @@ static void npm_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-pingpongprotocol.c b/epan/dissectors/packet-pingpongprotocol.c
index 863202c8c0..a15b4a85d9 100644
--- a/epan/dissectors/packet-pingpongprotocol.c
+++ b/epan/dissectors/packet-pingpongprotocol.c
@@ -206,6 +206,7 @@ static void pingpongprotocol_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;
diff --git a/epan/dissectors/packet-scriptingservice.c b/epan/dissectors/packet-scriptingservice.c
index 05e9267f3e..7745833218 100644
--- a/epan/dissectors/packet-scriptingservice.c
+++ b/epan/dissectors/packet-scriptingservice.c
@@ -237,6 +237,7 @@ static void ssprotocol_stat_init(stat_tap_table_ui* new_stat)
table = stat_tap_init_table(table_name, num_fields, 0, NULL);
stat_tap_add_table(new_stat, table);
+ memset(items, 0x0, sizeof(items));
/* Add a row for each value type */
while (message_type_values[i].strptr) {
items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING;