cppcheck/cli
Pino Toscano 0a50d8e8f4
FileLister: ensure enough space for resulting dirent (#2850)
On some platforms, the 'd_name' field of struct dirent is not a static
fixed-sized array but a "flexarray" (i.e. a single character); in this
situation, 'd_name' points to a buffer allocated somewhere, usually
at the end of the buffer used for dirent (which is then allocated in a
bigger memory). Because of this, creating a struct dirent on stack as
buffer for readdir_r is not enough to store all the memory needed for
a dirent on those platforms.

As result, create an helper union with all the needed space, calculated
statically at build time. NAME_MAX+1 is still not a perfect option, but
it will do the job in the vast majority of cases.
2020-10-18 20:43:33 +02:00
..
CMakeLists.txt
cli.vcxproj
cli.vcxproj.filters
cmdlineparser.cpp Write 'inconclusive:' in daca2 warnings 2020-09-26 11:02:10 +02:00
cmdlineparser.h
cppcheckexecutor.cpp CLI: fix execute command, quote argument that contains spaces 2020-08-30 20:02:18 +02:00
cppcheckexecutor.h
filelister.cpp FileLister: ensure enough space for resulting dirent (#2850) 2020-10-18 20:43:33 +02:00
filelister.h
main.cpp set version 2.2.99 2020-10-03 13:54:17 +02:00
threadexecutor.cpp
threadexecutor.h
version.rc