Catch an infinite loop.
svn path=/trunk/; revision=18672
This commit is contained in:
parent
2c5f918366
commit
f2d83a530e
1 changed files with 1 additions and 0 deletions
|
@ -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_identifier(tvb, offset, &class, &pc, &tag);
|
||||||
offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
|
offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
|
||||||
eoffset = offset + len;
|
eoffset = offset + len;
|
||||||
|
DISSECTOR_ASSERT(eoffset > offset);
|
||||||
|
|
||||||
if(ind_field && (len == 2)){
|
if(ind_field && (len == 2)){
|
||||||
/* disgusting indefinite length zero length field, what are these people doing */
|
/* disgusting indefinite length zero length field, what are these people doing */
|
||||||
|
|
Loading…
Reference in a new issue