[Libosinfo] [PATCH libosinfo v2 5/5] cfg.mk: enable sc_prohibit_atoi_atof and skip it for tests

Giuseppe Scrivano gscrivan at redhat.com
Mon Aug 4 13:17:32 UTC 2014


Avoid the usage of atoi and atof which are believed to be not safe, as
they don't do any error reporting.

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 cfg.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cfg.mk b/cfg.mk
index 890a4ae..7471467 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -30,7 +30,6 @@ local-checks-to-skip =			\
   sc_file_system			\
   sc_immutable_NEWS			\
   sc_prohibit_always_true_header_tests  \
-  sc_prohibit_atoi_atof			\
   sc_two_space_separator_in_usage	\
   sc_program_name			\
   sc_makefile_check
@@ -116,3 +115,5 @@ exclude_file_name_regexp--sc_trailing_blank = ^test/isodata/.*|docs/object-model
 exclude_file_name_regexp--sc_bindtextdomain = ^tools/.*.c|test/.*.c
 
 exclude_file_name_regexp--sc_space_tab = ^test/isodata/.*
+
+exclude_file_name_regexp--sc_prohibit_atoi_atof = ^test/.*\.c
-- 
1.9.3




More information about the Libosinfo mailing list