<div dir="ltr"><div>Hi,</div><div><br></div><div>Since this is undefined behavior, I guess it was accidentally fixed without a bug or being noticed.</div><div><br></div><div>BTW, I found this <a href="https://github.com/openssl/openssl/issues/9187">openssl bug</a> and <a href="https://github.com/openssl/openssl/pull/11741">pull request fix</a>, but that only fixed PEM line length of 254 (or a multiple), not 1265. <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 25, 2021 at 2:57 AM Matthias Buehlmann <<a href="mailto:Matthias.Buehlmann@mabulous.com">Matthias.Buehlmann@mabulous.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto"><pre style="font-size:1em;margin-top:0px;margin-bottom:0px;break-before:page">„Parsers MAYhandle other line sizes.These requirements are consistent with PEM [<a href="https://tools.ietf.org/html/rfc1421" title=""Privacy Enhancement for Internet Electronic Mail: Part I: Message Encryption and Authentication Procedures"" target="_blank">RFC1421</a>].“</pre></div><div dir="auto"><br></div><div dir="auto">It‘s not a bug, it‘s undefined behaviour.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Feb 2021 at 20:20 Frank Liu <<a href="mailto:gfrankliu@gmail.com" target="_blank">gfrankliu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I noticed openssl 1.0.1 and 1.0.2 
can't read a certificate PEM file with base64 line size of multiples of 
1265. Any other line size seems to be fine, even though rfc7468 says 
"exactly 64 characters except for the final line".</div><div><br></div><div>The same pem file can be read fine with latest openssl 1.1.1j. Does anybody know the bug or PR when that was fixed?</div><div><br></div><div>Thanks!</div></div><div dir="ltr"><div>Frank<br></div></div>
</blockquote></div></div>
</blockquote></div>