diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-18 12:29:16 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-18 10:33:10 +0000 |
commit | 05554f80f4dacfad1aafb3c66cfdf9e52fc09ac6 (patch) | |
tree | ff2752b0d71b19ccdd6eca60bf9676b0dcbae059 /epan/dissectors/packet-asterix.c | |
parent | c6c90431e8145f1bf12e24a02c15596d21b96c97 (diff) |
Asterix: field array must be NULL terminated
Bug: 11287
Change-Id: Iffcaa1cd2663768f616aedb550a101b7196e456b
Reviewed-on: https://code.wireshark.org/review/8975
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-asterix.c')
-rw-r--r-- | epan/dissectors/packet-asterix.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/epan/dissectors/packet-asterix.c b/epan/dissectors/packet-asterix.c index 5fc7e2829f..c8ebc17f9f 100644 --- a/epan/dissectors/packet-asterix.c +++ b/epan/dissectors/packet-asterix.c @@ -3659,7 +3659,8 @@ static const AsterixField I004_070 = { COMPOUND, 0, 0, 0, &hf_004_070, NULL, { & &I004_070_03, &I004_070_04, &I004_070_05, - &I004_070_06 } }; + &I004_070_06, + NULL } }; static const AsterixField I004_074 = { FIXED, 2, 0, 0, &hf_004_074, I004_074_PARTS, { NULL } }; static const AsterixField I004_075 = { FIXED, 3, 0, 0, &hf_004_075, I004_075_PARTS, { NULL } }; static const AsterixField I004_076 = { FIXED, 2, 0, 0, &hf_004_076, I004_076_PARTS, { NULL } }; @@ -3674,7 +3675,8 @@ static const AsterixField I004_100 = { COMPOUND, 0, 0, 0, &hf_004_100, NULL, { & &I004_100_03, &I004_100_04, &I004_100_05, - &I004_100_06 } }; + &I004_100_06, + NULL } }; static const AsterixField I004_110 = { REPETITIVE, 1, 2, 0, &hf_004_110, I004_110_PARTS, { NULL } }; static const AsterixField I004_120_01 = { FX, 1, 0, 0, &hf_004_120_01, I004_120_01_PARTS, { NULL } }; static const AsterixField I004_120_02 = { FIXED, 1, 0, 0, &hf_004_120_02, I004_120_02_PARTS, { NULL } }; @@ -3683,7 +3685,8 @@ static const AsterixField I004_120_04 = { FIXED, 3, 0, 0, &hf_004_120_04, I004_1 static const AsterixField I004_120 = { COMPOUND, 0, 0, 0, &hf_004_120, NULL, { &I004_120_01, &I004_120_02, &I004_120_03, - &I004_120_04 } }; + &I004_120_04, + NULL } }; static const AsterixField I004_170_01 = { FIXED, 7, 0, 0, &hf_004_170_01, I004_170_01_PARTS, { NULL } }; static const AsterixField I004_170_02 = { FIXED, 2, 0, 0, &hf_004_170_02, I004_170_02_PARTS, { NULL } }; static const AsterixField I004_170_03 = { FIXED, 10, 0, 0, &hf_004_170_03, I004_170_03_PARTS, { NULL } }; @@ -3703,7 +3706,8 @@ static const AsterixField I004_170 = { COMPOUND, 0, 0, 0, &hf_004_170, NULL, { & &I004_170_07, &I004_170_08, &I004_170_09, - &I004_170_10 } }; + &I004_170_10, + NULL } }; static const AsterixField I004_171_01 = { FIXED, 7, 0, 0, &hf_004_171_01, I004_171_01_PARTS, { NULL } }; static const AsterixField I004_171_02 = { FIXED, 2, 0, 0, &hf_004_171_02, I004_171_02_PARTS, { NULL } }; static const AsterixField I004_171_03 = { FIXED, 10, 0, 0, &hf_004_171_03, I004_171_03_PARTS, { NULL } }; @@ -3723,7 +3727,8 @@ static const AsterixField I004_171 = { COMPOUND, 0, 0, 0, &hf_004_171, NULL, { & &I004_171_07, &I004_171_08, &I004_171_09, - &I004_171_10 } }; + &I004_171_10, + NULL } }; static const AsterixField I004_SP = { SP, 0, 0, 1, &hf_004_SP, NULL, { NULL } }; static const AsterixField I004_RE = { RE, 0, 0, 1, &hf_004_RE, NULL, { NULL } }; |