Skip to content

Fix #20 and CMake simplifications#21

Open
chhinze wants to merge 1 commit intoachille-roussel:masterfrom
chhinze:fix/testcase1_failing
Open

Fix #20 and CMake simplifications#21
chhinze wants to merge 1 commit intoachille-roussel:masterfrom
chhinze:fix/testcase1_failing

Conversation

@chhinze
Copy link
Copy Markdown
Contributor

@chhinze chhinze commented Nov 14, 2018

  • define preprocessor variable NDEBUG=1, when CMAKE_BUILD_TYPE is not
    Debug (cause issue Test #1: message ***Failed #20)
  • fix overflowing buffer in test_message.cpp with strcpy.
    strcpy also copied terminating '\0', which lead to length 13 (buffer
    overflow) and failiure of nnxx_check() in test_message.cpp, l. 49
  • simplify detection of test case locations in CMake
  • more convenient output directory locations for CMake builds

- define preprocessor variable `NDEBUG=1`, when CMAKE_BUILD_TYPE is not
Debug (cause issue achille-roussel#20)
- fix overflowing buffer in test_message with strcpy.
strcpy also copied terminating '\0', which lead to length 13 (buffer
overflow) and failiure of nnxx_check() in test_message.cpp, l. 49
- simplify detection of test case locations in CMake
- more convenient output directory locations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant