"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/cfg/std.cpp" between
cppcheck-1.86.tar.gz and cppcheck-1.87.tar.gz

About: Cppcheck is a static analysis tool for C/C++ code. It checks for memory leaks, mismatching allocation-deallocation, buffer overrun, and many more.

std.cpp  (cppcheck-1.86):std.cpp  (cppcheck-1.87)
skipping to change at line 2903 skipping to change at line 2903
int i; int i;
char *s; char *s;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::snprintf(s,n,format,i); (void)std::snprintf(s,n,format,i);
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::snprintf(S,n,Format,Int); // n is uninitialized (void)std::snprintf(S,n,Format,Int); // n is uninitialized
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::snprintf(S,N,format,Int); // format is uninitialized (void)std::snprintf(S,N,format,Int); // format is uninitialized
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::snprintf(S,N,Format,i); // i is uninitialized (void)std::snprintf(S,N,Format,i); // i is uninitialized
// TODO cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::snprintf(s,N,Format,Int); (void)std::snprintf(s,N,Format,Int);
// no warning is expected for // no warning is expected for
(void)std::snprintf(S,N,Format,Int); (void)std::snprintf(S,N,Format,Int);
} }
void uninivar_vsnprintf(char *S, size_t N, char *Format, va_list Arg) void uninivar_vsnprintf(char *S, size_t N, char *Format, va_list Arg)
{ {
char *s; char *s;
size_t n; size_t n;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)