On 2018-03-19 03:38 +0000, Wookey wrote:
Setting hardening flags for the build reveals a potential issue:
error: format not a string literal and no format arguments in decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test.c:333:20
This fixes it: Index: libopencsd-0.8.1/decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test.c =================================================================== --- libopencsd-0.8.1.orig/decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test.c +++ libopencsd-0.8.1/decoder/tests/ext_dcd_test_eg/c_api_echo_test/ext_dcd_echo_test.c @@ -330,7 +330,7 @@ void print_test_cov_results(echo_decoder if (coverage[TEST_COV_MSGLOG_CB] == TEST_RES_OK) /* check we can use the msg logger for outputting the results */ lib_cb_LogMsg(p_fns, OCSD_ERR_SEV_ERROR, coverage_message); else - printf(coverage_message); + printf("%s", coverage_message); } }
Wookey