<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div><span style="white-space: pre-wrap;">Dear OpenSSL Group,</span></div><div style="position: relative;"><pre>    Greetings. I was working on writing simple aes encrypt/decrypt wrapper function in c++ and running into a strange problem. The minimal reproducible examples in gist seems working fine but when i uncomment lines 90-92, it will fail to decrypt randomly. Can someone help me to figure out what's wrong with the code?</pre><pre>    Here is my code: <a href="https://gist.github.com/GoGim1/77c9bebec1cc71cea066515b4623a051" style="font-family: Verdana;">OpenSSL AES Decryption fails randomly C++ (github.com)</a>. OpenSSL version is OpenSSL 1.1.1f. G++ version is 9.4.0.</pre><pre>Regards, </pre><pre>Jinze</pre></div>