Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #20 and CMake simplifications #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chhinze
Copy link
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