Catch an infinite loop.

svn path=/trunk/; revision=18672
This commit is contained in:
Gerald Combs 2006-07-06 16:47:50 +00:00
parent 2c5f918366
commit f2d83a530e
1 changed files with 1 additions and 0 deletions

View File

@ -1068,6 +1068,7 @@ printf("SEQUENCE dissect_ber_sequence(%s) entered\n",name);
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
eoffset = offset + len;
DISSECTOR_ASSERT(eoffset > offset);
if(ind_field && (len == 2)){
/* disgusting indefinite length zero length field, what are these people doing */