mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Fix build with mallocng.
This commit is contained in:
@@ -538,7 +538,7 @@ QString countAlphaVersionSignature(quint64 version) { // duplicated in autoupdat
|
||||
|
||||
uint32 siglen = 0;
|
||||
|
||||
RSA *prKey = [] {
|
||||
RSA *prKey = [&] {
|
||||
const auto bio = makeBIO(
|
||||
const_cast<char*>(cAlphaPrivateKey.constData()),
|
||||
-1);
|
||||
|
||||
@@ -746,15 +746,19 @@ int psFixPrevious() {
|
||||
namespace Platform {
|
||||
|
||||
void start() {
|
||||
// avoid stripping custom allocator
|
||||
malloc(0);
|
||||
calloc(0, 0);
|
||||
realloc(nullptr, 0);
|
||||
free(nullptr);
|
||||
aligned_alloc(0, 0);
|
||||
malloc_usable_size(nullptr);
|
||||
memalign(0, 0);
|
||||
posix_memalign(nullptr, 0, 0);
|
||||
// Avoid stripping custom allocator methods.
|
||||
const auto address = [](auto method) {
|
||||
return reinterpret_cast<uint64>(method);
|
||||
};
|
||||
const auto value = address(malloc)
|
||||
+ address(calloc)
|
||||
+ address(realloc)
|
||||
+ address(free)
|
||||
+ address(aligned_alloc)
|
||||
+ address(malloc_usable_size)
|
||||
+ address(memalign)
|
||||
+ address(posix_memalign);
|
||||
DEBUG_LOG(("Malloc addresses %1.").arg(value ? "non-null" : "null"));
|
||||
|
||||
LOG(("Launcher filename: %1").arg(QGuiApplication::desktopFileName()));
|
||||
|
||||
|
||||
Vendored
+1
-1
Submodule Telegram/ThirdParty/hime updated: 62424e7bab...7525645598
+1
-1
Submodule cmake updated: 294a18baf8...de65519132
Reference in New Issue
Block a user