Replace base64 decoding.
This code has caused a long history of problems. This change rewrites it
completely with something that is, hopefully, much simplier and robust
and adds more testing.
Change-Id: Ibeef51f9386afd95d5b73316e451eb3a2d7ec4e0
Reviewed-on: https://boringssl-review.googlesource.com/8033
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/fuzz/read_pem_corpus/78e4c8a5d73cf074f243ef12a3669fef1e848121 b/fuzz/read_pem_corpus/78e4c8a5d73cf074f243ef12a3669fef1e848121
new file mode 100644
index 0000000..890697e
--- /dev/null
+++ b/fuzz/read_pem_corpus/78e4c8a5d73cf074f243ef12a3669fef1e848121
@@ -0,0 +1,10 @@
+-----BEGIN O-----
+----(END /!-----BEGI 7í;!(;)-----END ç/O!:-----BEGIN O-----
+----(END /!---'U('ß(:(ç/!;!;6í();':(´'H('G)MG¿ëÑ'yO-
+ )o(*(Ç*Ä;ò¹:)·¬Ù*ª:!::(';±×'Ú(;é)Ð(!:)¢í:"PZ g;:; :':Â:7!)÷ö)vôǾ:--BEGIN 6í;!(;)--
+----END ç/!-----
+-
+kqU;O!:'U|:Ø8*:;sá(f!;;)--*----
+----BEGIN O-----
+----(END /!-----BEGIN 6í-
+j*:;!(;)-----END 6çí(
\ No newline at end of file