fuzz: add fuzzers for asn1_get_length_b/der
Add two simple fuzzers for asn1_get_length_b/der.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index c6310d1..b738016 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -35,6 +35,8 @@
libtasn1_parser2tree_fuzzer$(EXEEXT) \
libtasn1_pkix_der_fuzzer$(EXEEXT) \
libtasn1_gnutls_der_fuzzer$(EXEEXT) \
+ asn1_get_length_ber_fuzzer$(EXEEXT) \
+ asn1_get_length_der_fuzzer$(EXEEXT) \
asn1_get_object_id_der_fuzzer$(EXEEXT) \
asn1_decode_simple_ber_fuzzer$(EXEEXT) \
asn1_decode_simple_der_fuzzer$(EXEEXT)
@@ -58,6 +60,8 @@
libtasn1_parser2tree_fuzzer_SOURCES = libtasn1_parser2tree_fuzzer.c $(MAIN)
libtasn1_pkix_der_fuzzer_SOURCES = libtasn1_pkix_der_fuzzer.c $(MAIN)
libtasn1_gnutls_der_fuzzer_SOURCES = libtasn1_gnutls_der_fuzzer.c $(MAIN)
+asn1_get_length_ber_fuzzer_SOURCES = asn1_get_length_ber_fuzzer.c $(MAIN)
+asn1_get_length_der_fuzzer_SOURCES = asn1_get_length_der_fuzzer.c $(MAIN)
asn1_get_object_id_der_fuzzer_SOURCES = asn1_get_object_id_der_fuzzer.c $(MAIN)
asn1_decode_simple_der_fuzzer_SOURCES = asn1_decode_simple_der_fuzzer.c $(MAIN)
asn1_decode_simple_ber_fuzzer_SOURCES = asn1_decode_simple_ber_fuzzer.c $(MAIN)
diff --git a/fuzz/asn1_get_length_ber_fuzzer.c b/fuzz/asn1_get_length_ber_fuzzer.c
new file mode 100644
index 0000000..cb9d0bc
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright(c) 2020 Free Software Foundation, Inc.
+ *
+ * This file is part of libtasn1.
+ *
+ * Libtasn1 is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Libtasn1 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with libtasn1. If not, see <https://www.gnu.org/licenses/>.
+ *
+ * This fuzzer is testing asn1_get_length_ber()'s robustness with arbitrary
+ * input data.
+ */
+
+#include <config.h>
+
+#include "libtasn1.h"
+#include "fuzzer.h"
+
+#define MAXDATASIZE 512
+
+int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
+{
+ int ret_len;
+
+ if (size > MAXDATASIZE) // same as max_len = <MAXDATASIZE> in .options file
+ return 0;
+
+ asn1_get_length_ber(data, size, &ret_len);
+
+ return 0;
+}
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/021413a48fb132332eee53b5b7a629786f9cf3aa b/fuzz/asn1_get_length_ber_fuzzer.in/021413a48fb132332eee53b5b7a629786f9cf3aa
new file mode 100644
index 0000000..f57085b
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/021413a48fb132332eee53b5b7a629786f9cf3aa
@@ -0,0 +1 @@
+8
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/02e4288a2e7d6e90db66abd8e19f4361f8ac46e8 b/fuzz/asn1_get_length_ber_fuzzer.in/02e4288a2e7d6e90db66abd8e19f4361f8ac46e8
new file mode 100644
index 0000000..199e70f
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/02e4288a2e7d6e90db66abd8e19f4361f8ac46e8
@@ -0,0 +1 @@
+ÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/081e73ebc0d654fdf19c05e9226fb47316bb15c2 b/fuzz/asn1_get_length_ber_fuzzer.in/081e73ebc0d654fdf19c05e9226fb47316bb15c2
new file mode 100644
index 0000000..545c772
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/081e73ebc0d654fdf19c05e9226fb47316bb15c2
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/0906dc660a88305390a84fcc2a60bae70033c4ea b/fuzz/asn1_get_length_ber_fuzzer.in/0906dc660a88305390a84fcc2a60bae70033c4ea
new file mode 100644
index 0000000..28c2999
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/0906dc660a88305390a84fcc2a60bae70033c4ea
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/0d91d6ede3aab492adb7208e5e8ed9337a7668f8 b/fuzz/asn1_get_length_ber_fuzzer.in/0d91d6ede3aab492adb7208e5e8ed9337a7668f8
new file mode 100644
index 0000000..b14859e
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/0d91d6ede3aab492adb7208e5e8ed9337a7668f8
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/0edf1341b401bdb50aad8d5b7e05c7d6760344fc b/fuzz/asn1_get_length_ber_fuzzer.in/0edf1341b401bdb50aad8d5b7e05c7d6760344fc
new file mode 100644
index 0000000..868fd45
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/0edf1341b401bdb50aad8d5b7e05c7d6760344fc
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/0f0924144832931fd0a6de16388737ae7fa15d33 b/fuzz/asn1_get_length_ber_fuzzer.in/0f0924144832931fd0a6de16388737ae7fa15d33
new file mode 100644
index 0000000..f624afc
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/0f0924144832931fd0a6de16388737ae7fa15d33
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/11f1509a8e5d9efb63ac3205817fd3585cd972aa b/fuzz/asn1_get_length_ber_fuzzer.in/11f1509a8e5d9efb63ac3205817fd3585cd972aa
new file mode 100644
index 0000000..3a00704
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/11f1509a8e5d9efb63ac3205817fd3585cd972aa
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/14483aa4dc905254ce76f830e5c851dfcbd6d6a9 b/fuzz/asn1_get_length_ber_fuzzer.in/14483aa4dc905254ce76f830e5c851dfcbd6d6a9
new file mode 100644
index 0000000..68a1086
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/14483aa4dc905254ce76f830e5c851dfcbd6d6a9
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/14a3ea7dbbb2b57cd6cd3dcf1dd8b1c7be526a24 b/fuzz/asn1_get_length_ber_fuzzer.in/14a3ea7dbbb2b57cd6cd3dcf1dd8b1c7be526a24
new file mode 100644
index 0000000..0e0f29a
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/14a3ea7dbbb2b57cd6cd3dcf1dd8b1c7be526a24
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/182df86dee8bca10adc601ea0b30d5c5c61655a8 b/fuzz/asn1_get_length_ber_fuzzer.in/182df86dee8bca10adc601ea0b30d5c5c61655a8
new file mode 100644
index 0000000..08d0b41
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/182df86dee8bca10adc601ea0b30d5c5c61655a8
@@ -0,0 +1 @@
+A
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/18630274f6b4ca2d9ad6f4c5da5bf729b4569a1f b/fuzz/asn1_get_length_ber_fuzzer.in/18630274f6b4ca2d9ad6f4c5da5bf729b4569a1f
new file mode 100644
index 0000000..6241df2
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/18630274f6b4ca2d9ad6f4c5da5bf729b4569a1f
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/19452059bad6475836aff73229bafa1f13c688ee b/fuzz/asn1_get_length_ber_fuzzer.in/19452059bad6475836aff73229bafa1f13c688ee
new file mode 100644
index 0000000..dd7dbb1
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/19452059bad6475836aff73229bafa1f13c688ee
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/1a55bf74fdaa045f0997cff40c79894189ba6b31 b/fuzz/asn1_get_length_ber_fuzzer.in/1a55bf74fdaa045f0997cff40c79894189ba6b31
new file mode 100644
index 0000000..a01a899
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/1a55bf74fdaa045f0997cff40c79894189ba6b31
@@ -0,0 +1 @@
+U
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/1f83ad9a9e86a4424420698d050db70e31596b98 b/fuzz/asn1_get_length_ber_fuzzer.in/1f83ad9a9e86a4424420698d050db70e31596b98
new file mode 100644
index 0000000..3518523
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/1f83ad9a9e86a4424420698d050db70e31596b98
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/24249eb6a006848bc4a8c24ba906abd3e5c48d23 b/fuzz/asn1_get_length_ber_fuzzer.in/24249eb6a006848bc4a8c24ba906abd3e5c48d23
new file mode 100644
index 0000000..fbe2899
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/24249eb6a006848bc4a8c24ba906abd3e5c48d23
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/2519b34d0292937360dad58198aed875c979b984 b/fuzz/asn1_get_length_ber_fuzzer.in/2519b34d0292937360dad58198aed875c979b984
new file mode 100644
index 0000000..28467f9
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/2519b34d0292937360dad58198aed875c979b984
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/2853f73ed6d5b2f95964107cd300bdb9438d4c1c b/fuzz/asn1_get_length_ber_fuzzer.in/2853f73ed6d5b2f95964107cd300bdb9438d4c1c
new file mode 100644
index 0000000..918321e
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/2853f73ed6d5b2f95964107cd300bdb9438d4c1c
@@ -0,0 +1 @@
+êU
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/2c5146707ec1fd22fe42891414cd4581e67fe5c8 b/fuzz/asn1_get_length_ber_fuzzer.in/2c5146707ec1fd22fe42891414cd4581e67fe5c8
new file mode 100644
index 0000000..5440825
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/2c5146707ec1fd22fe42891414cd4581e67fe5c8
@@ -0,0 +1 @@
+¢
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/321ea41545d4bab0b1444b9100a2d260796475bc b/fuzz/asn1_get_length_ber_fuzzer.in/321ea41545d4bab0b1444b9100a2d260796475bc
new file mode 100644
index 0000000..a15cf0b
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/321ea41545d4bab0b1444b9100a2d260796475bc
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/32eaa98ee868254b8a2ec4d206407d57b5694d96 b/fuzz/asn1_get_length_ber_fuzzer.in/32eaa98ee868254b8a2ec4d206407d57b5694d96
new file mode 100644
index 0000000..d193b23
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/32eaa98ee868254b8a2ec4d206407d57b5694d96
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/33188d6bcc73bbc17c3e9f8536617d93ff30778c b/fuzz/asn1_get_length_ber_fuzzer.in/33188d6bcc73bbc17c3e9f8536617d93ff30778c
new file mode 100644
index 0000000..42ee5cb
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/33188d6bcc73bbc17c3e9f8536617d93ff30778c
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/33f9a68d414e820d00a1ade5e29234af67b4fa49 b/fuzz/asn1_get_length_ber_fuzzer.in/33f9a68d414e820d00a1ade5e29234af67b4fa49
new file mode 100644
index 0000000..4e1f249
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/33f9a68d414e820d00a1ade5e29234af67b4fa49
@@ -0,0 +1 @@
+ÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/368888bbe213d1506cd0fa101668451d5048cda0 b/fuzz/asn1_get_length_ber_fuzzer.in/368888bbe213d1506cd0fa101668451d5048cda0
new file mode 100644
index 0000000..319cd70
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/368888bbe213d1506cd0fa101668451d5048cda0
@@ -0,0 +1 @@
+ÿÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/370bcddfdf1559477f8c469f599a2d974239df73 b/fuzz/asn1_get_length_ber_fuzzer.in/370bcddfdf1559477f8c469f599a2d974239df73
new file mode 100644
index 0000000..b04e860
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/370bcddfdf1559477f8c469f599a2d974239df73
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/37fe4e38f252ceb4e934fee3a6625eafde528463 b/fuzz/asn1_get_length_ber_fuzzer.in/37fe4e38f252ceb4e934fee3a6625eafde528463
new file mode 100644
index 0000000..e6e75dc
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/37fe4e38f252ceb4e934fee3a6625eafde528463
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/3b633a601658e60a40b07ae9579a5c8c9ddaa19a b/fuzz/asn1_get_length_ber_fuzzer.in/3b633a601658e60a40b07ae9579a5c8c9ddaa19a
new file mode 100644
index 0000000..ad6d573
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/3b633a601658e60a40b07ae9579a5c8c9ddaa19a
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/410518f4bef959f54b082d44a61610db9b356730 b/fuzz/asn1_get_length_ber_fuzzer.in/410518f4bef959f54b082d44a61610db9b356730
new file mode 100644
index 0000000..f0a32fa
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/410518f4bef959f54b082d44a61610db9b356730
@@ -0,0 +1 @@
+ÿÿÿü
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/426f1ec5285ac4aa6e2d5fea9fa8caefdc8f6c5f b/fuzz/asn1_get_length_ber_fuzzer.in/426f1ec5285ac4aa6e2d5fea9fa8caefdc8f6c5f
new file mode 100644
index 0000000..73283ee
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/426f1ec5285ac4aa6e2d5fea9fa8caefdc8f6c5f
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/44e1160498189035cac0b129263e7dbb09e3a1ba b/fuzz/asn1_get_length_ber_fuzzer.in/44e1160498189035cac0b129263e7dbb09e3a1ba
new file mode 100644
index 0000000..32d67dd
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/44e1160498189035cac0b129263e7dbb09e3a1ba
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/462a34b2d441cbaafd91a1f62023ae4aefb13743 b/fuzz/asn1_get_length_ber_fuzzer.in/462a34b2d441cbaafd91a1f62023ae4aefb13743
new file mode 100644
index 0000000..1494f47
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/462a34b2d441cbaafd91a1f62023ae4aefb13743
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/4829182e4d1671b22521522b7efc2b5a9b7a3de7 b/fuzz/asn1_get_length_ber_fuzzer.in/4829182e4d1671b22521522b7efc2b5a9b7a3de7
new file mode 100644
index 0000000..f1f2335
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/4829182e4d1671b22521522b7efc2b5a9b7a3de7
@@ -0,0 +1 @@
+ªU
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/489f232a5bc1a209b85c5e5175ad0f1522fca8df b/fuzz/asn1_get_length_ber_fuzzer.in/489f232a5bc1a209b85c5e5175ad0f1522fca8df
new file mode 100644
index 0000000..5bda502
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/489f232a5bc1a209b85c5e5175ad0f1522fca8df
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/49a5537b1e0b30221cf37022474a2e9b6ace276a b/fuzz/asn1_get_length_ber_fuzzer.in/49a5537b1e0b30221cf37022474a2e9b6ace276a
new file mode 100644
index 0000000..b370685
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/49a5537b1e0b30221cf37022474a2e9b6ace276a
@@ -0,0 +1 @@
+_úú
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/4c0eec58b4c3bd31ddf31ddc97b16d6089449990 b/fuzz/asn1_get_length_ber_fuzzer.in/4c0eec58b4c3bd31ddf31ddc97b16d6089449990
new file mode 100644
index 0000000..09411a0
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/4c0eec58b4c3bd31ddf31ddc97b16d6089449990
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/4cc3d3b6f63b9de769a5d8d9b7bbc78fce7a01e2 b/fuzz/asn1_get_length_ber_fuzzer.in/4cc3d3b6f63b9de769a5d8d9b7bbc78fce7a01e2
new file mode 100644
index 0000000..b0b908c
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/4cc3d3b6f63b9de769a5d8d9b7bbc78fce7a01e2
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/4cf332094328c25051fb198dcc91e6c1c7c5c451 b/fuzz/asn1_get_length_ber_fuzzer.in/4cf332094328c25051fb198dcc91e6c1c7c5c451
new file mode 100644
index 0000000..677a210
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/4cf332094328c25051fb198dcc91e6c1c7c5c451
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/4d6934d95127fb8398ba8cc65b5338be48d25806 b/fuzz/asn1_get_length_ber_fuzzer.in/4d6934d95127fb8398ba8cc65b5338be48d25806
new file mode 100644
index 0000000..674a94c
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/4d6934d95127fb8398ba8cc65b5338be48d25806
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/4fd83ec99bdfdec70cc105ce97658bf04d960e49 b/fuzz/asn1_get_length_ber_fuzzer.in/4fd83ec99bdfdec70cc105ce97658bf04d960e49
new file mode 100644
index 0000000..142086a
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/4fd83ec99bdfdec70cc105ce97658bf04d960e49
@@ -0,0 +1 @@
+ÿÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/5223aef3638dc068f2211de8b07278dd663611b6 b/fuzz/asn1_get_length_ber_fuzzer.in/5223aef3638dc068f2211de8b07278dd663611b6
new file mode 100644
index 0000000..afafcfd
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/5223aef3638dc068f2211de8b07278dd663611b6
@@ -0,0 +1 @@
+ÿÕ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/527c5a43bc3269e2d20ad5ec878343f0ec8b91fd b/fuzz/asn1_get_length_ber_fuzzer.in/527c5a43bc3269e2d20ad5ec878343f0ec8b91fd
new file mode 100644
index 0000000..719123f
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/527c5a43bc3269e2d20ad5ec878343f0ec8b91fd
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/5aab3bb60b58b8b55a5ad4aabe5a716cbb3c5de4 b/fuzz/asn1_get_length_ber_fuzzer.in/5aab3bb60b58b8b55a5ad4aabe5a716cbb3c5de4
new file mode 100644
index 0000000..dea9125
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/5aab3bb60b58b8b55a5ad4aabe5a716cbb3c5de4
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/5ba93c9db0cff93f52b521d7420e43f6eda2784f b/fuzz/asn1_get_length_ber_fuzzer.in/5ba93c9db0cff93f52b521d7420e43f6eda2784f
new file mode 100644
index 0000000..f76dd23
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/5ba93c9db0cff93f52b521d7420e43f6eda2784f
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/5c69aca090c142bd79ed477cb1d7c69bf4c2db67 b/fuzz/asn1_get_length_ber_fuzzer.in/5c69aca090c142bd79ed477cb1d7c69bf4c2db67
new file mode 100644
index 0000000..d7600a7
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/5c69aca090c142bd79ed477cb1d7c69bf4c2db67
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/697d33e6abea7c8b742c945dfe2aa495e562c04b b/fuzz/asn1_get_length_ber_fuzzer.in/697d33e6abea7c8b742c945dfe2aa495e562c04b
new file mode 100644
index 0000000..1af33f4
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/697d33e6abea7c8b742c945dfe2aa495e562c04b
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/76975ad03e4fc552be9ec6907891976963ecf2a1 b/fuzz/asn1_get_length_ber_fuzzer.in/76975ad03e4fc552be9ec6907891976963ecf2a1
new file mode 100644
index 0000000..738a80c
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/76975ad03e4fc552be9ec6907891976963ecf2a1
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/7a9a560324795dbb5b83890c50c8721be504ce01 b/fuzz/asn1_get_length_ber_fuzzer.in/7a9a560324795dbb5b83890c50c8721be504ce01
new file mode 100644
index 0000000..67137f9
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/7a9a560324795dbb5b83890c50c8721be504ce01
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/7d1f0e4157c97252ea3a6fe20cecf6121a955377 b/fuzz/asn1_get_length_ber_fuzzer.in/7d1f0e4157c97252ea3a6fe20cecf6121a955377
new file mode 100644
index 0000000..3c1f62b
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/7d1f0e4157c97252ea3a6fe20cecf6121a955377
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/811d668e267276322b52230b3b2c01bfaf5ddc10 b/fuzz/asn1_get_length_ber_fuzzer.in/811d668e267276322b52230b3b2c01bfaf5ddc10
new file mode 100644
index 0000000..d4e5359
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/811d668e267276322b52230b3b2c01bfaf5ddc10
@@ -0,0 +1 @@
+ÿýÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/81b7b7cce28ae93f29389c55662ec1a824041d7e b/fuzz/asn1_get_length_ber_fuzzer.in/81b7b7cce28ae93f29389c55662ec1a824041d7e
new file mode 100644
index 0000000..a23f18f
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/81b7b7cce28ae93f29389c55662ec1a824041d7e
@@ -0,0 +1 @@
+ÿÿÿò
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/81c06e5eae4f91431a344819ddcad4436dbb4faa b/fuzz/asn1_get_length_ber_fuzzer.in/81c06e5eae4f91431a344819ddcad4436dbb4faa
new file mode 100644
index 0000000..a90c8a8
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/81c06e5eae4f91431a344819ddcad4436dbb4faa
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/81eb8ff8765adcdf3e22a01275b9166a7ef034ea b/fuzz/asn1_get_length_ber_fuzzer.in/81eb8ff8765adcdf3e22a01275b9166a7ef034ea
new file mode 100644
index 0000000..9e0210e
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/81eb8ff8765adcdf3e22a01275b9166a7ef034ea
@@ -0,0 +1 @@
+ÿ½ ÿU
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/81f75b6c1f4f5b40bcb0b5c96aebe295157d6da8 b/fuzz/asn1_get_length_ber_fuzzer.in/81f75b6c1f4f5b40bcb0b5c96aebe295157d6da8
new file mode 100644
index 0000000..3fe0a9d
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/81f75b6c1f4f5b40bcb0b5c96aebe295157d6da8
@@ -0,0 +1 @@
+ÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/83e25c62378b26ce7b1cffc43cea8efc2de6bd9a b/fuzz/asn1_get_length_ber_fuzzer.in/83e25c62378b26ce7b1cffc43cea8efc2de6bd9a
new file mode 100644
index 0000000..d066a36
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/83e25c62378b26ce7b1cffc43cea8efc2de6bd9a
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/85f57d77b71fa2c5859878a2bb6ec09eaf93ef88 b/fuzz/asn1_get_length_ber_fuzzer.in/85f57d77b71fa2c5859878a2bb6ec09eaf93ef88
new file mode 100644
index 0000000..059286c
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/85f57d77b71fa2c5859878a2bb6ec09eaf93ef88
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/8647399e1f7070b06fb4e4b4c6f6944cb181254e b/fuzz/asn1_get_length_ber_fuzzer.in/8647399e1f7070b06fb4e4b4c6f6944cb181254e
new file mode 100644
index 0000000..1f3d309
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/8647399e1f7070b06fb4e4b4c6f6944cb181254e
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/8acc1bafc91498c524405b52358d2a5f3e3ae47a b/fuzz/asn1_get_length_ber_fuzzer.in/8acc1bafc91498c524405b52358d2a5f3e3ae47a
new file mode 100644
index 0000000..f0ad4ab
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/8acc1bafc91498c524405b52358d2a5f3e3ae47a
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/9155a3e33f8eb5658e7163d7be529cffd49773f2 b/fuzz/asn1_get_length_ber_fuzzer.in/9155a3e33f8eb5658e7163d7be529cffd49773f2
new file mode 100644
index 0000000..d483096
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/9155a3e33f8eb5658e7163d7be529cffd49773f2
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/91cf50afd54ed8c717641013b18a132ae32204d5 b/fuzz/asn1_get_length_ber_fuzzer.in/91cf50afd54ed8c717641013b18a132ae32204d5
new file mode 100644
index 0000000..91c6ab8
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/91cf50afd54ed8c717641013b18a132ae32204d5
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/973081ba4fed9c932ca74eb5a3804eb3893e78cf b/fuzz/asn1_get_length_ber_fuzzer.in/973081ba4fed9c932ca74eb5a3804eb3893e78cf
new file mode 100644
index 0000000..93159d7
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/973081ba4fed9c932ca74eb5a3804eb3893e78cf
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/98554384230454353373a6f51e4851c4e8e1ce6d b/fuzz/asn1_get_length_ber_fuzzer.in/98554384230454353373a6f51e4851c4e8e1ce6d
new file mode 100644
index 0000000..ee85d04
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/98554384230454353373a6f51e4851c4e8e1ce6d
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/989a20fd1fa7fe80f61d04fd227e87769297517b b/fuzz/asn1_get_length_ber_fuzzer.in/989a20fd1fa7fe80f61d04fd227e87769297517b
new file mode 100644
index 0000000..e1fce08
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/989a20fd1fa7fe80f61d04fd227e87769297517b
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/99aa82ed9328739c0bb5fbbc796db63f5c2dbb96 b/fuzz/asn1_get_length_ber_fuzzer.in/99aa82ed9328739c0bb5fbbc796db63f5c2dbb96
new file mode 100644
index 0000000..5db330f
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/99aa82ed9328739c0bb5fbbc796db63f5c2dbb96
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/9c52faaeb18cde12a7b805d028ef014474528d30 b/fuzz/asn1_get_length_ber_fuzzer.in/9c52faaeb18cde12a7b805d028ef014474528d30
new file mode 100644
index 0000000..4af770e
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/9c52faaeb18cde12a7b805d028ef014474528d30
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/9fd885ca748de7fcfc66f86213f7204d19659a2d b/fuzz/asn1_get_length_ber_fuzzer.in/9fd885ca748de7fcfc66f86213f7204d19659a2d
new file mode 100644
index 0000000..c4537c7
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/9fd885ca748de7fcfc66f86213f7204d19659a2d
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/a8853d872d14d9f8429322acb2727a64d8718c40 b/fuzz/asn1_get_length_ber_fuzzer.in/a8853d872d14d9f8429322acb2727a64d8718c40
new file mode 100644
index 0000000..1462eca
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/a8853d872d14d9f8429322acb2727a64d8718c40
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/a98405d2e1fa945a02f85b3c2abb21577d07fc62 b/fuzz/asn1_get_length_ber_fuzzer.in/a98405d2e1fa945a02f85b3c2abb21577d07fc62
new file mode 100644
index 0000000..1716bc8
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/a98405d2e1fa945a02f85b3c2abb21577d07fc62
@@ -0,0 +1 @@
+ÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/ad0b96d7c35f46a80092afbafdd632009742aa8f b/fuzz/asn1_get_length_ber_fuzzer.in/ad0b96d7c35f46a80092afbafdd632009742aa8f
new file mode 100644
index 0000000..7d492d4
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/ad0b96d7c35f46a80092afbafdd632009742aa8f
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/ae419aefb4e9b6b27e5b291070308ecd6549b531 b/fuzz/asn1_get_length_ber_fuzzer.in/ae419aefb4e9b6b27e5b291070308ecd6549b531
new file mode 100644
index 0000000..8711615
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/ae419aefb4e9b6b27e5b291070308ecd6549b531
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/aeaa88a1852144b57f5bb2de319154e9b6ecf3c1 b/fuzz/asn1_get_length_ber_fuzzer.in/aeaa88a1852144b57f5bb2de319154e9b6ecf3c1
new file mode 100644
index 0000000..4c08f62
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/aeaa88a1852144b57f5bb2de319154e9b6ecf3c1
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/b0546ed248474d0f9edbef7e47e2145d4e0f1a38 b/fuzz/asn1_get_length_ber_fuzzer.in/b0546ed248474d0f9edbef7e47e2145d4e0f1a38
new file mode 100644
index 0000000..673a986
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/b0546ed248474d0f9edbef7e47e2145d4e0f1a38
@@ -0,0 +1 @@
+8t8
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/b32a59d43bea508d779962217a701bd522f4c1e8 b/fuzz/asn1_get_length_ber_fuzzer.in/b32a59d43bea508d779962217a701bd522f4c1e8
new file mode 100644
index 0000000..46d93b4
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/b32a59d43bea508d779962217a701bd522f4c1e8
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/b52de4e430c39ac04f35b2eb31ce178b2e692218 b/fuzz/asn1_get_length_ber_fuzzer.in/b52de4e430c39ac04f35b2eb31ce178b2e692218
new file mode 100644
index 0000000..09acdde
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/b52de4e430c39ac04f35b2eb31ce178b2e692218
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/b68542373c05c0ed25231d09955b2c699d37c45b b/fuzz/asn1_get_length_ber_fuzzer.in/b68542373c05c0ed25231d09955b2c699d37c45b
new file mode 100644
index 0000000..050ac90
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/b68542373c05c0ed25231d09955b2c699d37c45b
@@ -0,0 +1 @@
+þ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/b80480bf64911050d567c7ad9f9375b10bdb6c8d b/fuzz/asn1_get_length_ber_fuzzer.in/b80480bf64911050d567c7ad9f9375b10bdb6c8d
new file mode 100644
index 0000000..17a4d23
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/b80480bf64911050d567c7ad9f9375b10bdb6c8d
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/b9e2a4e29b135756f22cde5ad0513bdf8490ff81 b/fuzz/asn1_get_length_ber_fuzzer.in/b9e2a4e29b135756f22cde5ad0513bdf8490ff81
new file mode 100644
index 0000000..3163555
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/b9e2a4e29b135756f22cde5ad0513bdf8490ff81
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/bb589d0621e5472f470fa3425a234c74b1e202e8 b/fuzz/asn1_get_length_ber_fuzzer.in/bb589d0621e5472f470fa3425a234c74b1e202e8
new file mode 100644
index 0000000..ad2823b
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/bb589d0621e5472f470fa3425a234c74b1e202e8
@@ -0,0 +1 @@
+'
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/bb80594ba9eba002a9a0a6ca518967ba69a594ba b/fuzz/asn1_get_length_ber_fuzzer.in/bb80594ba9eba002a9a0a6ca518967ba69a594ba
new file mode 100644
index 0000000..537309e
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/bb80594ba9eba002a9a0a6ca518967ba69a594ba
@@ -0,0 +1 @@
+ÿÿÿüúú
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/bec32b9c9e99d8dea6217df5c4c8b1ce658e6c06 b/fuzz/asn1_get_length_ber_fuzzer.in/bec32b9c9e99d8dea6217df5c4c8b1ce658e6c06
new file mode 100644
index 0000000..0d14ed6
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/bec32b9c9e99d8dea6217df5c4c8b1ce658e6c06
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/c73cb5d0a4d7c15131b5f90136de82692f2bfd0d b/fuzz/asn1_get_length_ber_fuzzer.in/c73cb5d0a4d7c15131b5f90136de82692f2bfd0d
new file mode 100644
index 0000000..8b261b1
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/c73cb5d0a4d7c15131b5f90136de82692f2bfd0d
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/c78ebd3c85a39a596d9f5cfd2b8d240bc1b9c125 b/fuzz/asn1_get_length_ber_fuzzer.in/c78ebd3c85a39a596d9f5cfd2b8d240bc1b9c125
new file mode 100644
index 0000000..5416677
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/c78ebd3c85a39a596d9f5cfd2b8d240bc1b9c125
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/c999619f22754fea4eb06687ff3aedc97c73744f b/fuzz/asn1_get_length_ber_fuzzer.in/c999619f22754fea4eb06687ff3aedc97c73744f
new file mode 100644
index 0000000..8c85706
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/c999619f22754fea4eb06687ff3aedc97c73744f
@@ -0,0 +1 @@
+û
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/cd56981f3da8bf182e32c81bba6b81e4f38a2caf b/fuzz/asn1_get_length_ber_fuzzer.in/cd56981f3da8bf182e32c81bba6b81e4f38a2caf
new file mode 100644
index 0000000..5a42d0b
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/cd56981f3da8bf182e32c81bba6b81e4f38a2caf
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/d12ae0d0fc2cd8a5ca5bb598d8b0e605c11e77bc b/fuzz/asn1_get_length_ber_fuzzer.in/d12ae0d0fc2cd8a5ca5bb598d8b0e605c11e77bc
new file mode 100644
index 0000000..70af7c3
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/d12ae0d0fc2cd8a5ca5bb598d8b0e605c11e77bc
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/d1c54e6aabdbf92032c90d2cfd8f0c0a5a5ecdb2 b/fuzz/asn1_get_length_ber_fuzzer.in/d1c54e6aabdbf92032c90d2cfd8f0c0a5a5ecdb2
new file mode 100644
index 0000000..34535f7
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/d1c54e6aabdbf92032c90d2cfd8f0c0a5a5ecdb2
@@ -0,0 +1 @@
+ÿ§'
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/d442f519e556b6251cdb0e7d2ab720a4030b8479 b/fuzz/asn1_get_length_ber_fuzzer.in/d442f519e556b6251cdb0e7d2ab720a4030b8479
new file mode 100644
index 0000000..c15bf32
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/d442f519e556b6251cdb0e7d2ab720a4030b8479
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/d676f36e6f57b62c585651253f1af84fb97fb493 b/fuzz/asn1_get_length_ber_fuzzer.in/d676f36e6f57b62c585651253f1af84fb97fb493
new file mode 100644
index 0000000..9abf5ef
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/d676f36e6f57b62c585651253f1af84fb97fb493
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/d6e232a2e66df2ab419bd13ad01c5e5297f2c6d3 b/fuzz/asn1_get_length_ber_fuzzer.in/d6e232a2e66df2ab419bd13ad01c5e5297f2c6d3
new file mode 100644
index 0000000..c4055dc
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/d6e232a2e66df2ab419bd13ad01c5e5297f2c6d3
@@ -0,0 +1 @@
+p
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/da33e41954997c24ad31f6c1845e18510b384f67 b/fuzz/asn1_get_length_ber_fuzzer.in/da33e41954997c24ad31f6c1845e18510b384f67
new file mode 100644
index 0000000..5d98346
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/da33e41954997c24ad31f6c1845e18510b384f67
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/dc01b46165914e535b40b3fc82caa5771ef475a0 b/fuzz/asn1_get_length_ber_fuzzer.in/dc01b46165914e535b40b3fc82caa5771ef475a0
new file mode 100644
index 0000000..a1c0485
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/dc01b46165914e535b40b3fc82caa5771ef475a0
@@ -0,0 +1 @@
+ÿÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/dc443c79b85b93ed473edfdf0a5f71e8e41d1f54 b/fuzz/asn1_get_length_ber_fuzzer.in/dc443c79b85b93ed473edfdf0a5f71e8e41d1f54
new file mode 100644
index 0000000..f55d51d
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/dc443c79b85b93ed473edfdf0a5f71e8e41d1f54
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/dd9f5bf831efd0703ec42f05ce3bcfcd64a88b68 b/fuzz/asn1_get_length_ber_fuzzer.in/dd9f5bf831efd0703ec42f05ce3bcfcd64a88b68
new file mode 100644
index 0000000..7a4a094
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/dd9f5bf831efd0703ec42f05ce3bcfcd64a88b68
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/de995eecb075aa6e3d38dbc36ce489a4aa971072 b/fuzz/asn1_get_length_ber_fuzzer.in/de995eecb075aa6e3d38dbc36ce489a4aa971072
new file mode 100644
index 0000000..9f4a24c
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/de995eecb075aa6e3d38dbc36ce489a4aa971072
@@ -0,0 +1 @@
+ÿÜÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/df65cae395e7a8e8b6532a60bc2c6f2159dbbb1e b/fuzz/asn1_get_length_ber_fuzzer.in/df65cae395e7a8e8b6532a60bc2c6f2159dbbb1e
new file mode 100644
index 0000000..7114d60
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/df65cae395e7a8e8b6532a60bc2c6f2159dbbb1e
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/e88db2faebd4db89572cb37ff9818e118798e306 b/fuzz/asn1_get_length_ber_fuzzer.in/e88db2faebd4db89572cb37ff9818e118798e306
new file mode 100644
index 0000000..9e2763f
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/e88db2faebd4db89572cb37ff9818e118798e306
@@ -0,0 +1 @@
+5):))
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/ee6bcf22281ba04a727b08053e638868d3270a04 b/fuzz/asn1_get_length_ber_fuzzer.in/ee6bcf22281ba04a727b08053e638868d3270a04
new file mode 100644
index 0000000..7b1621b
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/ee6bcf22281ba04a727b08053e638868d3270a04
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/ef31365226eb66f40553bc9800d4ef4e9b3aa160 b/fuzz/asn1_get_length_ber_fuzzer.in/ef31365226eb66f40553bc9800d4ef4e9b3aa160
new file mode 100644
index 0000000..39444b3
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/ef31365226eb66f40553bc9800d4ef4e9b3aa160
@@ -0,0 +1 @@
+¼ÿÿû
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/f0d5b9f3d6e7b3859cd9c0222441b37a9ce8cb90 b/fuzz/asn1_get_length_ber_fuzzer.in/f0d5b9f3d6e7b3859cd9c0222441b37a9ce8cb90
new file mode 100644
index 0000000..3689a70
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/f0d5b9f3d6e7b3859cd9c0222441b37a9ce8cb90
@@ -0,0 +1 @@
+U
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/f0e48937606c326fdf6a3697239ec80d0eb5e250 b/fuzz/asn1_get_length_ber_fuzzer.in/f0e48937606c326fdf6a3697239ec80d0eb5e250
new file mode 100644
index 0000000..9f354a5
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/f0e48937606c326fdf6a3697239ec80d0eb5e250
@@ -0,0 +1 @@
+ÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/f12908561589401a6d8494310d45db4b8f78790d b/fuzz/asn1_get_length_ber_fuzzer.in/f12908561589401a6d8494310d45db4b8f78790d
new file mode 100644
index 0000000..93306e8
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/f12908561589401a6d8494310d45db4b8f78790d
@@ -0,0 +1 @@
+ÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/f34810a283ab249ffe30334f632ad39f843525ff b/fuzz/asn1_get_length_ber_fuzzer.in/f34810a283ab249ffe30334f632ad39f843525ff
new file mode 100644
index 0000000..9dbf186
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/f34810a283ab249ffe30334f632ad39f843525ff
@@ -0,0 +1 @@
+ÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/f50fc6df2e7e2fcd06bf3793b1dfda98f12096fb b/fuzz/asn1_get_length_ber_fuzzer.in/f50fc6df2e7e2fcd06bf3793b1dfda98f12096fb
new file mode 100644
index 0000000..9cc74df
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/f50fc6df2e7e2fcd06bf3793b1dfda98f12096fb
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/f736a7e1e3360dee7882125b38c3b6dcf22bae24 b/fuzz/asn1_get_length_ber_fuzzer.in/f736a7e1e3360dee7882125b38c3b6dcf22bae24
new file mode 100644
index 0000000..708f27a
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/f736a7e1e3360dee7882125b38c3b6dcf22bae24
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/fa8a0578398508209c3eecada7dc66061469fa83 b/fuzz/asn1_get_length_ber_fuzzer.in/fa8a0578398508209c3eecada7dc66061469fa83
new file mode 100644
index 0000000..fa49a02
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/fa8a0578398508209c3eecada7dc66061469fa83
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/fab8bd7633715b3c175fa24977f9720c9b98f690 b/fuzz/asn1_get_length_ber_fuzzer.in/fab8bd7633715b3c175fa24977f9720c9b98f690
new file mode 100644
index 0000000..aa2bf41
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/fab8bd7633715b3c175fa24977f9720c9b98f690
Binary files differ
diff --git a/fuzz/asn1_get_length_ber_fuzzer.in/fc47030b75e6b130160b41de76c911810fd5d06a b/fuzz/asn1_get_length_ber_fuzzer.in/fc47030b75e6b130160b41de76c911810fd5d06a
new file mode 100644
index 0000000..377c9a1
--- /dev/null
+++ b/fuzz/asn1_get_length_ber_fuzzer.in/fc47030b75e6b130160b41de76c911810fd5d06a
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.c b/fuzz/asn1_get_length_der_fuzzer.c
new file mode 100644
index 0000000..f5fe9d0
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright(c) 2020 Free Software Foundation, Inc.
+ *
+ * This file is part of libtasn1.
+ *
+ * Libtasn1 is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Libtasn1 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with libtasn1. If not, see <https://www.gnu.org/licenses/>.
+ *
+ * This fuzzer is testing asn1_get_length_der()'s robustness with arbitrary
+ * input data.
+ */
+
+#include <config.h>
+
+#include "libtasn1.h"
+#include "fuzzer.h"
+
+#define MAXDATASIZE 512
+
+int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
+{
+ int ret_len;
+
+ if (size > MAXDATASIZE) // same as max_len = <MAXDATASIZE> in .options file
+ return 0;
+
+ asn1_get_length_der(data, size, &ret_len);
+
+ return 0;
+}
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/034b433111355eac0af3dea3e94ecc06a4708f4f b/fuzz/asn1_get_length_der_fuzzer.in/034b433111355eac0af3dea3e94ecc06a4708f4f
new file mode 100644
index 0000000..9971136
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/034b433111355eac0af3dea3e94ecc06a4708f4f
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/0fd57c5399afa0c951bdca5df46eca43e79bf4ac b/fuzz/asn1_get_length_der_fuzzer.in/0fd57c5399afa0c951bdca5df46eca43e79bf4ac
new file mode 100644
index 0000000..f9302b7
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/0fd57c5399afa0c951bdca5df46eca43e79bf4ac
@@ -0,0 +1 @@
+ÿÿÿÿÁ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/1a55bf74fdaa045f0997cff40c79894189ba6b31 b/fuzz/asn1_get_length_der_fuzzer.in/1a55bf74fdaa045f0997cff40c79894189ba6b31
new file mode 100644
index 0000000..a01a899
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/1a55bf74fdaa045f0997cff40c79894189ba6b31
@@ -0,0 +1 @@
+U
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/2121f23550253ecb6c6696bf90680b272c979b28 b/fuzz/asn1_get_length_der_fuzzer.in/2121f23550253ecb6c6696bf90680b272c979b28
new file mode 100644
index 0000000..8921aa7
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/2121f23550253ecb6c6696bf90680b272c979b28
@@ -0,0 +1 @@
+Áÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/395df8f7c51f007019cb30201c49e884b46b92fa b/fuzz/asn1_get_length_der_fuzzer.in/395df8f7c51f007019cb30201c49e884b46b92fa
new file mode 100644
index 0000000..fa7af8b
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/395df8f7c51f007019cb30201c49e884b46b92fa
@@ -0,0 +1 @@
+z
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/3a6a6c4de2cd63c1d63ac6e89f816bc50fdc3255 b/fuzz/asn1_get_length_der_fuzzer.in/3a6a6c4de2cd63c1d63ac6e89f816bc50fdc3255
new file mode 100644
index 0000000..b8df09b
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/3a6a6c4de2cd63c1d63ac6e89f816bc50fdc3255
@@ -0,0 +1 @@
+÷
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/411f21145d5d215b5a54cbdf9ecb7f7df7bfe46b b/fuzz/asn1_get_length_der_fuzzer.in/411f21145d5d215b5a54cbdf9ecb7f7df7bfe46b
new file mode 100644
index 0000000..bfcb97f
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/411f21145d5d215b5a54cbdf9ecb7f7df7bfe46b
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/4829182e4d1671b22521522b7efc2b5a9b7a3de7 b/fuzz/asn1_get_length_der_fuzzer.in/4829182e4d1671b22521522b7efc2b5a9b7a3de7
new file mode 100644
index 0000000..f1f2335
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/4829182e4d1671b22521522b7efc2b5a9b7a3de7
@@ -0,0 +1 @@
+ªU
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/5ba93c9db0cff93f52b521d7420e43f6eda2784f b/fuzz/asn1_get_length_der_fuzzer.in/5ba93c9db0cff93f52b521d7420e43f6eda2784f
new file mode 100644
index 0000000..f76dd23
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/5ba93c9db0cff93f52b521d7420e43f6eda2784f
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/64d1ce518ad3a87a53bacf637fa7aedb60efece4 b/fuzz/asn1_get_length_der_fuzzer.in/64d1ce518ad3a87a53bacf637fa7aedb60efece4
new file mode 100644
index 0000000..ced46ed
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/64d1ce518ad3a87a53bacf637fa7aedb60efece4
@@ -0,0 +1 @@
+ÿÿÿÿÿ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/7633e2378dd3e6a42e47aa304081f9bf272e82fa b/fuzz/asn1_get_length_der_fuzzer.in/7633e2378dd3e6a42e47aa304081f9bf272e82fa
new file mode 100644
index 0000000..69c444a
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/7633e2378dd3e6a42e47aa304081f9bf272e82fa
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/8eb0bdbb3450edf8cd607e53b291da9045e667e6 b/fuzz/asn1_get_length_der_fuzzer.in/8eb0bdbb3450edf8cd607e53b291da9045e667e6
new file mode 100644
index 0000000..e036a0f
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/8eb0bdbb3450edf8cd607e53b291da9045e667e6
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/a02876c00f98442ccd6332bf49c981c7d497d366 b/fuzz/asn1_get_length_der_fuzzer.in/a02876c00f98442ccd6332bf49c981c7d497d366
new file mode 100644
index 0000000..4db12da
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/a02876c00f98442ccd6332bf49c981c7d497d366
Binary files differ
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/a3f294235fe5422005ae9bc3a0d1bffe12cfe353 b/fuzz/asn1_get_length_der_fuzzer.in/a3f294235fe5422005ae9bc3a0d1bffe12cfe353
new file mode 100644
index 0000000..e7a5832
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/a3f294235fe5422005ae9bc3a0d1bffe12cfe353
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/c2cae394bf125e3740c6d6017cc096b9ec5fa273 b/fuzz/asn1_get_length_der_fuzzer.in/c2cae394bf125e3740c6d6017cc096b9ec5fa273
new file mode 100644
index 0000000..d0216b8
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/c2cae394bf125e3740c6d6017cc096b9ec5fa273
@@ -0,0 +1 @@
+¯
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/c78ebd3c85a39a596d9f5cfd2b8d240bc1b9c125 b/fuzz/asn1_get_length_der_fuzzer.in/c78ebd3c85a39a596d9f5cfd2b8d240bc1b9c125
new file mode 100644
index 0000000..5416677
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/c78ebd3c85a39a596d9f5cfd2b8d240bc1b9c125
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/f0d5b9f3d6e7b3859cd9c0222441b37a9ce8cb90 b/fuzz/asn1_get_length_der_fuzzer.in/f0d5b9f3d6e7b3859cd9c0222441b37a9ce8cb90
new file mode 100644
index 0000000..3689a70
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/f0d5b9f3d6e7b3859cd9c0222441b37a9ce8cb90
@@ -0,0 +1 @@
+U
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/f2a0bbcd4d89888757d7d0e4363871a2c29f4fd4 b/fuzz/asn1_get_length_der_fuzzer.in/f2a0bbcd4d89888757d7d0e4363871a2c29f4fd4
new file mode 100644
index 0000000..057c85f
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/f2a0bbcd4d89888757d7d0e4363871a2c29f4fd4
@@ -0,0 +1 @@
+ëÿÿþ
\ No newline at end of file
diff --git a/fuzz/asn1_get_length_der_fuzzer.in/f537545801b3c19b0eb1d7cd88f59bcd36dfd59f b/fuzz/asn1_get_length_der_fuzzer.in/f537545801b3c19b0eb1d7cd88f59bcd36dfd59f
new file mode 100644
index 0000000..cdaa5f2
--- /dev/null
+++ b/fuzz/asn1_get_length_der_fuzzer.in/f537545801b3c19b0eb1d7cd88f59bcd36dfd59f
Binary files differ