[openssl-dev] [openssl.org #3628] [PATCH] NDEBUG macro and redundant strings

Алексей Комнин via RT rt at openssl.org
Wed Dec 10 20:35:44 UTC 2014


During the development process we found that libcrypto contains a lot of
redundant strings in the final binary even when it was built with Debugging
turned off. These strings undesirably reveal absolute paths to the source
files of libcrypto. The paths usually contain private information, e.g.
"/Users/john.johnson/Projects/libssl/crypto/evp/encode.c".

That happens because several macros, like OPENSSL_malloc(),
OPENSSL_assert() etc.,
pass __FILE__ as an operand to the underlying routines.

I'd like to propose a new macro, NDEBUG, which turns on/off passing
__FILE__ as
an argument.

Thanks,
Alex Komnin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssl-ndebug.patch
Type: application/octet-stream
Size: 10628 bytes
Desc: not available
URL: <http://mta.opensslfoundation.net/pipermail/openssl-dev/attachments/20141210/8eff805e/attachment.obj>


More information about the openssl-dev mailing list