diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-01-04 10:52:05 +0100 |
---|---|---|
committer | Tomasz Swierczek <t.swierczek@samsung.com> | 2018-05-21 10:21:12 +0200 |
commit | 1701584f7841a79ae4e97699a8c4ac9f0a09c38f (patch) | |
tree | 1dc5c8ca01f36c5392de07468397f6388c456fdd /gl/read-file.h | |
parent | 52e10d8471cd9e6572d85b4bf15e599bc60b3ce5 (diff) | |
download | libtasn1-1701584f7841a79ae4e97699a8c4ac9f0a09c38f.tar.gz libtasn1-1701584f7841a79ae4e97699a8c4ac9f0a09c38f.tar.bz2 libtasn1-1701584f7841a79ae4e97699a8c4ac9f0a09c38f.zip |
BACKPORT: _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: Nikos Mavrogiannopoulos <nmav@redhat.com>
(cherry-picked from upstream c593ae84cfcde8fea45787e53950e0ac71e9ca97)
Change-Id: If3eb039487979b9639b42b314c3b0c89f18737fa
Signed-off-by: Tomasz Swierczek <t.swierczek@samsung.com>
Diffstat (limited to 'gl/read-file.h')
0 files changed, 0 insertions, 0 deletions