diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-02-24 03:06:46 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-02-24 06:06:31 +0000 |
commit | 9ff932bf5ea554f9e94ee1364284aff9eb3fd619 (patch) | |
tree | 18443cf3ef79e676e2fc68f914f21a2c4bc49e32 /docbook | |
parent | e395633224fd448fd93af0450b812228192d3a1b (diff) |
ber: avoid deep recursion for constructed strings
Bound the recursion depth to avoid a stack overflow while parsing a
deeply nested constructed string.
Call chain before this patch:
- dissect_ber_octet_string
- dissect_ber_constrained_octet_string
- reassemble_octet_string (called for constructed types)
- dissect_ber_octet_string *recursion*
After this patch, the reassemble_octet_string will throw if the maximum
recursion depth is reached.
Bug: 11822
Change-Id: I6753e3c9f5dcbfab0e4c174418b2c7eb784d64d2
Reviewed-on: https://code.wireshark.org/review/14108
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'docbook')
0 files changed, 0 insertions, 0 deletions