Open Ales999 opened 6 years ago
Hello. After build and run:
ctest -C Debug .
first test is fails, other tests is ok.
message.cpp: ... message::~message() { if (m_data != nullptr) {
nn_freemsg(m_data);
if (nn_freemsg(m_data) != 0) { // !!! THIS Fails !!! std::fprintf(stderr, "warning: nn_freemsg: %s\n", strerror()); }
}
} ...
Build and compile with VS 2017 with last updates. Using stable 'nanomsg', version v1.1.5
Macro variable NDEBUG=1 was not defined in CMakeLists. Further, there was a buffer overflow due to std::strcpy appending a trailing \0 character. Does PR #21 solve this problem?
NDEBUG=1
std::strcpy
\0
Hello. After build and run:
ctest -C Debug .
first test is fails, other tests is ok.
message.cpp: ... message::~message() { if (m_data != nullptr) {
ifdef NDEBUG
else
endif
} ...
Build and compile with VS 2017 with last updates. Using stable 'nanomsg', version v1.1.5