Skip to content
Commit c593ae84 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos
Browse files

_asn1_decode_simple_ber: restrict the levels of recursion to 3



On indefinite string decoding, setting a maximum level of recursions
protects the BER decoder from a stack exhaustion due to large amounts
of recursion.

Signed-off-by: default avatarNikos Mavrogiannopoulos <nmav@redhat.com>
parent 0e74cc96
Loading
Loading
Loading
Loading
  • It makes sense to me after inspecting some other changes in tmp-protect-ber-decoder-from-recursion2. What would be probably good to add is the description of dflags parameter of _asn1_decode_simple_ber, but maybe in different commit.

  • @ep69 I've added a comment set documenting the options. Thank you.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment