Mamy bug coverity dla tej linii kodu:snprintf luka w zabezpieczeniach Format String problem
snprintf(tempStr, size, testStrings[testID], A2DtoV(testResults[testID].value),
A2DtoV(testResults[testID].min),A2DtoV(testResults[testID].max));
Błąd mówi:
non_const_printf_format_string: "format string is not a string literal,
potential security vulnerability if user controlled"
zmieniłem testStrings do const, ale które nie zrób wszystko:
static const char *testStrings[] = {"1", ... etc};
Jakieś pomysły dotyczące tego, co naprawdę mówi ten błąd?