Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Don't Use Boost
C++17
-pedantic
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic
Signal:
Segmentation fault
Author
anonymous
about 3 years ago
C++
gcc 11.1.0
Author
anonymous
about 3 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic
prog.cc: In function 'void AvgParticleExtension(int, int, int, const char*)':
prog.cc:153:35: warning: '/tAvg_pAvg_extension.txt' directive writing 24 bytes into a region of size between 1 and 100 [-Wformat-overflow=]
153 | sprintf (tAvgFilename, "%s/tAvg_pAvg_extension.txt", folder);
| ^~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:153:17: note: 'sprintf' output between 25 and 124 bytes into a destination of size 100
153 | sprintf (tAvgFilename, "%s/tAvg_pAvg_extension.txt", folder);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~