Closed zygmuntg closed 3 years ago
PSLinuxOS with the latest updates has the same problem.
I've changed line 46 in micmac/src/uti_phgrm/CPP_VideoVisage.cpp from
char aBuf[10];
to
char aBuf[11];
Now it compiles without any problems.
Was this fixed in the current state of MicMac? If so, please close the issue.
While compiling on fresh install of Debian 10.5 i get the following error:
[ 55%] Building CXX object src/CMakeFiles/elise.dir/uti_phgrm/CPP_MM2DPostSism.cpp.o /root/micmac/src/uti_phgrm/CPP_VideoVisage.cpp: In constructor ‘cVideoVisage::cVideoVisage(int, char**)’: /root/micmac/src/uti_phgrm/CPP_VideoVisage.cpp:47:18: error: ‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] sprintf(aBuf,"%05d",aK); ^
~/root/micmac/src/uti_phgrm/CPP_VideoVisage.cpp:47:12: note: ‘sprintf’ output between 6 and 11 bytes into a destination of size 10 sprintf(aBuf,"%05d",aK);