diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-12-19 14:27:17 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-12-19 14:27:17 +0000 |
commit | 6a3678799f2b8887f2ef09e623132bc743fa7294 (patch) | |
tree | d47b7484a55863d47e0717d6b53795537f35f9b6 /epan/dissectors/packet-acse.c | |
parent | acf531e7fb3300522b447f38f6ed169c90b23702 (diff) |
Regenerate with SIZE constraints checking.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31322 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-acse.c')
-rw-r--r-- | epan/dissectors/packet-acse.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-acse.c b/epan/dissectors/packet-acse.c index 8d15401b4f..0d02848557 100644 --- a/epan/dissectors/packet-acse.c +++ b/epan/dissectors/packet-acse.c @@ -1,7 +1,7 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ /* packet-acse.c */ -/* ../../tools/asn2wrs.py -b -e -p acse -c ./acse.cnf -s ./packet-acse-template -D . acse.asn */ +/* ../../tools/asn2wrs.py -b -e -C -p acse -c ./acse.cnf -s ./packet-acse-template -D . acse.asn */ /* Input file: packet-acse-template.c */ @@ -868,8 +868,8 @@ dissect_acse_Syntactic_context_list(gboolean implicit_tag _U_, tvbuff_t *tvb _U_ static int dissect_acse_ASOI_identifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, - NULL); + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 1U, 128U, hf_index, NULL); return offset; } @@ -896,8 +896,8 @@ static const ber_sequence_t ASOI_tag_sequence_of[1] = { static int dissect_acse_ASOI_tag(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset, - ASOI_tag_sequence_of, hf_index, ett_acse_ASOI_tag); + offset = dissect_ber_constrained_sequence_of(implicit_tag, actx, tree, tvb, offset, + 0, 7, ASOI_tag_sequence_of, hf_index, ett_acse_ASOI_tag); return offset; } @@ -996,8 +996,8 @@ static const value_string acse_Associate_result_vals[] = { static int dissect_acse_Associate_result(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, - NULL); + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 0U, 2U, hf_index, NULL); return offset; } @@ -1025,8 +1025,8 @@ static const value_string acse_T_acse_service_user_vals[] = { static int dissect_acse_T_acse_service_user(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, - NULL); + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 0U, 14U, hf_index, NULL); return offset; } @@ -1042,8 +1042,8 @@ static const value_string acse_T_acse_service_provider_vals[] = { static int dissect_acse_T_acse_service_provider(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, - NULL); + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 0U, 2U, hf_index, NULL); return offset; } @@ -1301,8 +1301,8 @@ static const value_string acse_ABRT_source_vals[] = { static int dissect_acse_ABRT_source(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, - NULL); + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 0U, 1U, hf_index, NULL); return offset; } |