nanomsgxx icon indicating copy to clipboard operation
nanomsgxx copied to clipboard

Test #1: message ***Failed

Open Ales999 opened this issue 6 years ago • 1 comments

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 nn_freemsg(m_data); #else if (nn_freemsg(m_data) != 0) { // !!! THIS Fails !!! std::fprintf(stderr, "warning: nn_freemsg: %s\n", strerror()); } #endif } } ...

Build and compile with VS 2017 with last updates. Using stable 'nanomsg', version v1.1.5

2018-11-13 15 18 28

Ales999 avatar Nov 13 '18 10:11 Ales999

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?

chhinze avatar Nov 14 '18 03:11 chhinze