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
|
- name: Build ${{matrix.configuration}} ${{matrix.arch}} binaries
|
||||||
run: |
|
run: |
|
||||||
pushd build
|
pushd build
|
||||||
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
|
../tools/mold/mold -run make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
CC: gcc-11
|
|
||||||
CXX: g++-11
|
|
||||||
|
|
||||||
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
|
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
|
@ -37,12 +37,6 @@
|
|||||||
|
|
||||||
#else
|
#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/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -91,6 +85,5 @@
|
|||||||
#pragma comment(lib, "ws2_32.lib")
|
#pragma comment(lib, "ws2_32.lib")
|
||||||
#pragma comment(lib, "urlmon.lib" )
|
#pragma comment(lib, "urlmon.lib" )
|
||||||
#pragma comment(lib, "iphlpapi.lib")
|
#pragma comment(lib, "iphlpapi.lib")
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,7 +128,7 @@ namespace utils::cryptography
|
|||||||
|
|
||||||
ecc::key::key()
|
ecc::key::key()
|
||||||
{
|
{
|
||||||
ZeroMemory(&this->key_storage_, sizeof(this->key_storage_));
|
std::memset(&this->key_storage_, 0, sizeof(this->key_storage_));
|
||||||
}
|
}
|
||||||
|
|
||||||
ecc::key::~key()
|
ecc::key::~key()
|
||||||
@ -153,7 +153,7 @@ namespace utils::cryptography
|
|||||||
if (this != &obj)
|
if (this != &obj)
|
||||||
{
|
{
|
||||||
std::memmove(&this->key_storage_, &obj.key_storage_, sizeof(this->key_storage_));
|
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;
|
return *this;
|
||||||
@ -205,7 +205,7 @@ namespace utils::cryptography
|
|||||||
ul(pub_key_buffer.size()),
|
ul(pub_key_buffer.size()),
|
||||||
&this->key_storage_) != CRYPT_OK)
|
&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
|
&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_);
|
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
|
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