aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/fuzz/x509/afl_007.pem
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-08-02 23:43:12 -0400
committerJack Lloyd <[email protected]>2015-08-02 23:43:12 -0400
commit392ce7db1eccf5e2eacb074195ea7f5016f70259 (patch)
tree49aa67753d35e5ae56feac3b67cc55b7274a53da /src/tests/data/fuzz/x509/afl_007.pem
parent8e19ecf11c2c50b5a2d6642477d729091409fec8 (diff)
Fix two crashes in the BER decoder found with afl.
One a read at 0 of an empty vector, the other causing allocation of an arbitrary amount of memory.
Diffstat (limited to 'src/tests/data/fuzz/x509/afl_007.pem')
-rw-r--r--src/tests/data/fuzz/x509/afl_007.pem13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/data/fuzz/x509/afl_007.pem b/src/tests/data/fuzz/x509/afl_007.pem
new file mode 100644
index 000000000..30145a8fa
--- /dev/null
+++ b/src/tests/data/fuzz/x509/afl_007.pem
@@ -0,0 +1,13 @@
+-----BEGIN CERTIFICATE-----
+MICAIN CAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD
+VQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv
+b3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV
+UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU
+cnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC45k+625h8cXyv
+RLfTD0bZZOWTwUKOx7pJjTUteueLveUFMVnGsS8KDPufpz+iCWaEVh43KRuH6X4M
+ypqfpX/1FZSj1aJGgthoTNE3FQZor734sLPwKfWVWgkWYXcKIiXUT0Wqx73llt/5
+1KiOQswkwB6RJ0q1bQaAYznEol44AwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz
+dcZfHeFhVYAA1IFLezEPI2PnPfMD+fQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl
+IjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4/5ODFlitppK+ULdjG+BqXH/9Apy
+bW1EDp3zdHSo1TRJ6V6e6bR64eVaH4QwnNOfpSXY
+-----END CERTIFICATE----- \ No newline at end of file