The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15738 
====================================================================== 
Reported By:                Thomas Klausner
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15738
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-09-12 12:37 EDT
Last Modified:              2015-09-12 12:37 EDT
====================================================================== 
Summary:                    printw() should use format string
Description: 
Multiple files (in Source/CursesDialog/*.cxx) use the printw() function without
a format string, i.e.
printw(some_variable);
This is unsafe; if some_variable contains "%s" or similar, you have problems.

Please use the
printw("%s", some_variable);
idiom instead.


Steps to Reproduce: 
Code inspection.

Additional Information: 
The attached patch fixes this issue.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-09-12 12:37 Thomas KlausnerNew Issue                                    
2015-09-12 12:37 Thomas KlausnerFile Added: printw.diff                      
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to