mirror of
https://github.com/diamante0018/master-tool.git
synced 2025-05-09 22:14:52 +00:00
fixes
This commit is contained in:
parent
3e50a7c132
commit
bfdfd2ef69
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
BIN
tools/mold/mold
Executable file
Binary file not shown.
BIN
tools/mold/mold-wrapper.so
Normal file
BIN
tools/mold/mold-wrapper.so
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user