Re:OpenSSL: Stack buffer overflow in CMS AuthEnvelopedData p...
by magicalhippo on Wednesday January 28, 2026 @10:38AM
(#46796720)
Win32 API at some point started using the convention of having the buffer length be a reference. If the buffer is too small the API function updates the reference with the required buffer length and returns an error code.
I quite like that, within the confines of C. I prefer the caller be responsible for allocations, and this makes it harder to mess up.
I quite like that, within the confines of C. I prefer the caller be responsible for allocations, and this makes it harder to mess up.