CMake/Source/CursesDialog
Sylvain Joubert b4ef7fbaa8 ccmake: Fix crash with cache entries almost the size of the window
The previous code:

if (curFieldLen < width) {
  ...
  strncpy(bar + curFieldLen + 2, help, width - curFieldLen - 2);

was not correctly guarded against cache entries whose size were exactly
1 or 2 characters short of the window size.
"if (curFieldLen - 2 < width)" would have prevented a copy of
negative/max_int characters and a subsequent crash.

The whole method was modernized with std::string instead of char*
2019-11-19 20:06:31 +01:00
..
form Fix misc. typos 2018-06-04 10:32:49 -04:00
.NoDartCoverage ENH: Until there is some test for curses dialog, no need to do coverage 2005-06-20 17:37:40 -04:00
ccmake.cxx ccmake: redirect stdout/stderr to the displayed logs 2019-11-16 08:27:32 +01:00
CMakeLists.txt ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesBoolWidget.cxx ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesBoolWidget.h clang-tidy: Use = delete 2019-01-29 14:09:21 -05:00
cmCursesCacheEntryComposite.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCursesCacheEntryComposite.h cmCursesMainForm: change Entries to object vector 2019-09-27 17:18:16 +05:30
cmCursesColor.cxx ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesColor.h ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesDummyWidget.cxx cmState: Port dependents to new cmStateTypes header 2016-10-19 15:40:59 +02:00
cmCursesDummyWidget.h clang-tidy: Use = delete 2019-01-29 14:09:21 -05:00
cmCursesFilePathWidget.cxx cmState: Port dependents to new cmStateTypes header 2016-10-19 15:40:59 +02:00
cmCursesFilePathWidget.h clang-tidy: Use = delete 2019-01-29 14:09:21 -05:00
cmCursesForm.cxx Use C++11 nullptr 2017-08-24 23:39:47 +02:00
cmCursesForm.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCursesLabelWidget.cxx clang-tidy: Use = default 2019-01-25 06:44:32 -05:00
cmCursesLabelWidget.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCursesLongMessageForm.cxx ccmake: redirect stdout/stderr to the displayed logs 2019-11-16 08:27:32 +01:00
cmCursesLongMessageForm.h ccmake: redirect stdout/stderr to the displayed logs 2019-11-16 08:27:32 +01:00
cmCursesMainForm.cxx ccmake: Fix crash with cache entries almost the size of the window 2019-11-19 20:06:31 +01:00
cmCursesMainForm.h ccmake: Fix crash with cache entries almost the size of the window 2019-11-19 20:06:31 +01:00
cmCursesOptionsWidget.cxx ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesOptionsWidget.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCursesPathWidget.cxx ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesPathWidget.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCursesStandardIncludes.h Revise C++ coding style using clang-format-6.0 2018-06-01 09:53:42 -04:00
cmCursesStringWidget.cxx ccmake: Use type-based colors to display cache values 2019-11-04 18:59:20 +01:00
cmCursesStringWidget.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCursesWidget.cxx Use C++11 nullptr 2017-08-24 23:39:47 +02:00
cmCursesWidget.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00