Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My app crashes because OpenSSL symbols are visible in libWebCore.so #524

Open
mkucmpro opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@mkucmpro
Copy link

mkucmpro commented Jan 7, 2025

My Linux x64 app links with multiple libraries: OpenSSL with Ultralight among others. When some methods from libcrypto (which is a part of OpenSSL) are called (e.g. BIO_free()), that symbol is resolved to libWebCore.so, instead of libcrypto.so

When executing nm -CD ultralight-1.4.0/bin/libWebCore.so | grep BIO to read the symbols of libWebCore, I am getting the following output:

0000000002330830 T BIO_callback_ctrl
0000000002330110 T BIO_clear_flags
0000000002331150 T BIO_copy_next_retry
0000000002330650 T BIO_ctrl
00000000023308f0 T BIO_ctrl_pending
00000000023309d0 T BIO_ctrl_wpending
000000000232f180 T BIO_dump
000000000232eda0 T BIO_dump_cb
000000000232f130 T BIO_dump_fp
000000000232f1c0 T BIO_dump_indent
000000000232edb0 T BIO_dump_indent_cb
000000000232f160 T BIO_dump_indent_fp
0000000002330e10 T BIO_dup_chain
000000000232f3b0 T BIO_f_buffer
00000000023cd0b0 T BIO_f_cipher
0000000002330cf0 T BIO_find_type
00000000023cd8a0 T BIO_f_md
000000000232ff70 T BIO_free
0000000002330d50 T BIO_free_all
...

It seems that these libcrypto symbols are re-exported from libWebCore.so. Since only you have the control over their visibility, can change your compilation to actually hide them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant