Skip to content

Commit

Permalink
Fix wrong offset in H.235 tokens causing malformed packet exception
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=49899
  • Loading branch information
Tomas Kukosa committed Jun 12, 2013
1 parent 2e8347a commit 822c02b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions asn1/h235/h235.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@ NonStandardParameter/data TYPE = FT_UINT32 DISPLAY = BASE_DEC

#.FN_HDR SIGNED
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);
#.END
#.FN_HDR ENCRYPTED
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);
#.END
#.FN_HDR HASHED
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);
#.END

#.FN_HDR ClearToken
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);
#.END

#.FN_HDR CryptoToken
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);
#.END

Expand Down
10 changes: 5 additions & 5 deletions epan/dissectors/packet-h235.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ int
dissect_h235_ENCRYPTED(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 65 "../../asn1/h235/h235.cnf"
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);

offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
Expand Down Expand Up @@ -589,7 +589,7 @@ int
dissect_h235_SIGNED(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 60 "../../asn1/h235/h235.cnf"
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);

offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
Expand Down Expand Up @@ -754,7 +754,7 @@ int
dissect_h235_ClearToken(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 76 "../../asn1/h235/h235.cnf"
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);

offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
Expand All @@ -775,7 +775,7 @@ int
dissect_h235_HASHED(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 70 "../../asn1/h235/h235.cnf"
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);

offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
Expand Down Expand Up @@ -851,7 +851,7 @@ int
dissect_h235_CryptoToken(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 82 "../../asn1/h235/h235.cnf"
proto_item *hidden_item;
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset, 0, ENC_NA);
hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA);
PROTO_ITEM_SET_HIDDEN(hidden_item);

offset = dissect_per_choice(tvb, offset, actx, tree, hf_index,
Expand Down

0 comments on commit 822c02b

Please sign in to comment.