While doing cppcheck, cppcheck is showing 'invalid scanf' and it is saying:
scanf without field width limits can crash with huge input data on some versions of libc.
Does it give any crash for my program? How to get rid of this issue?
int a;
char str[32];
int part[4];
// after this i am storing some string in 'str'.
a = sscanf(str, "%d%d%d%d", &part[0], &part[1], &part[2], &part[3]); // here i am getting that cppcheck portability error.