This commit is contained in:
6arelyFuture 2022-11-12 22:24:04 +00:00
parent 3e50a7c132
commit bfdfd2ef69
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
5 changed files with 7 additions and 18 deletions

View File

@ -90,11 +90,7 @@ jobs:
- name: Build ${{matrix.configuration}} ${{matrix.arch}} binaries
run: |
pushd build
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
shell: bash
env:
CC: gcc-11
CXX: g++-11
../tools/mold/mold -run make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
uses: actions/upload-artifact@v3.1.0

View File

@ -37,12 +37,6 @@
#else
#pragma GCC diagnostic push
#ifndef __APPLE__
#pragma GCC diagnostic ignored "-Wbool-compare"
#endif
#pragma GCC diagnostic ignored "-Wlogical-not-parentheses"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@ -91,6 +85,5 @@
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "urlmon.lib" )
#pragma comment(lib, "iphlpapi.lib")
#else
#pragma GCC diagnostic pop
#endif

View File

@ -128,7 +128,7 @@ namespace utils::cryptography
ecc::key::key()
{
ZeroMemory(&this->key_storage_, sizeof(this->key_storage_));
std::memset(&this->key_storage_, 0, sizeof(this->key_storage_));
}
ecc::key::~key()
@ -153,7 +153,7 @@ namespace utils::cryptography
if (this != &obj)
{
std::memmove(&this->key_storage_, &obj.key_storage_, sizeof(this->key_storage_));
ZeroMemory(&obj.key_storage_, sizeof(obj.key_storage_));
std::memset(&obj.key_storage_, 0, sizeof(obj.key_storage_));
}
return *this;
@ -205,7 +205,7 @@ namespace utils::cryptography
ul(pub_key_buffer.size()),
&this->key_storage_) != CRYPT_OK)
{
ZeroMemory(&this->key_storage_, sizeof(this->key_storage_));
std::memset(&this->key_storage_, 0, sizeof(this->key_storage_));
}
}
@ -217,7 +217,7 @@ namespace utils::cryptography
&this->key_storage_) != CRYPT_OK
)
{
ZeroMemory(&this->key_storage_, sizeof(this->key_storage_));
std::memset(&this->key_storage_, 0, sizeof(this->key_storage_));
}
}
@ -241,7 +241,7 @@ namespace utils::cryptography
ecc_free(&this->key_storage_);
}
ZeroMemory(&this->key_storage_, sizeof(this->key_storage_));
std::memset(&this->key_storage_, 0, sizeof(this->key_storage_));
}
bool ecc::key::operator==(key& key) const

BIN
tools/mold/mold Executable file

Binary file not shown.

BIN
tools/mold/mold-wrapper.so Normal file

Binary file not shown.