Restrict the depth of the protocol tree.
authorGerald Combs <gerald@wireshark.org>
Mon, 11 Apr 2016 22:38:14 +0000 (15:38 -0700)
committerGerald Combs <gerald@wireshark.org>
Wed, 13 Apr 2016 18:46:26 +0000 (18:46 +0000)
commit8dc9551e1d56290e6f7f02cc38b77e1d211fd4a5
tree4096123e80815883d17c9fafd45ae8d81ae02f53
parent21f1cec9c8c85b75fcb94d793062b5d1a8ed9a9e
Restrict the depth of the protocol tree.

Limit the the protocol tree to 500 levels. This keeps us from running
out of stack space in proto_tree_traverse_{pre,post}_order.

Bug: 12268
Change-Id: I60f6b4487bf51a4d43da0429819a8a20fbdb313a
Reviewed-on: https://code.wireshark.org/review/14887
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
epan/proto.c