Skip to content

Commit

Permalink
When dissecting IMSI handle the zero length tvb case, fixes "Malforme…
Browse files Browse the repository at this point in the history
…d Packet: CAMEL (empty IMSI tag)"

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9015

svn path=/trunk/; revision=51208
  • Loading branch information
AndersBroman committed Aug 8, 2013
1 parent fd4a111 commit 08d223e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 43 deletions.
2 changes: 2 additions & 0 deletions asn1/gsm_map/gsm_map.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ MAP-DialoguePDU B "0.4.0.0.1.1.1.1" "map-DialogueAS"

if (!parameter_tvb)
return offset;
if(tvb_length(parameter_tvb)==0)
return offset;

digit_str = unpack_digits(parameter_tvb, 0);
proto_tree_add_string(tree, hf_gsm_map_TBCD_digits, parameter_tvb, 0, -1, digit_str);
Expand Down
Loading

0 comments on commit 08d223e

Please sign in to comment.