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 some CMake cleanups and additions (#2639) 2020-05-27 05:15:46 +02:00
cli.vcxproj disabled some Visual Studio warnings (#2635) 2020-05-23 17:42:56 +02:00
cli.vcxproj.filters Fixed Visual Studio build after pathmatch.h/cpp was moved to lib, fixed compiler errors about getcwd 2016-10-02 15:48:03 +02:00
cmdlineparser.cpp Write 'inconclusive:' in daca2 warnings 2020-09-26 11:02:10 +02:00
cmdlineparser.h Update copyright year 2020-05-10 11:16:32 +02:00
cppcheckexecutor.cpp CLI: fix execute command, quote argument that contains spaces 2020-08-30 20:02:18 +02:00
cppcheckexecutor.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
filelister.cpp FileLister: ensure enough space for resulting dirent (#2850) 2020-10-18 20:43:33 +02:00
filelister.h Updated copyright year 2018-01-14 15:37:52 +01:00
main.cpp set version 2.2.99 2020-10-03 13:54:17 +02:00
threadexecutor.cpp made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
threadexecutor.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
version.rc Update cli/version.rc 2012-10-15 11:28:08 -05:00